Dim i(1 To 100) As IntegerPrivate Sub Cmd1_Click()Dim j As Integerj = 0Open App.Path & "\in.txt" For Input As #1For j = 1 To 100 Input #1, i(j)NextClose #1For j = 1 To 100 Text1.Text = Text1.Text & i(j) & Space(5)NextEnd SubPrivate Sub Cmd2_Click()Dim temp As LongDim j As IntegerText1.Text = ""For j = 1 To 50 Text1.Text = Text1.Text & i(j) & Space(5)Nextputdata i, 50End Sub这是整段代码,每当执行到“Input #1, i(j)”这句话时就提示超出文件尾,请问如何解决?