文件的读写操作!
Option Base 1Private Sub Command1_Click()
Static a() As Integer
Open "G:\eason\vb\in.txt" For Input As #1
For i = 1 To 10
Line Input #1, a(i)
'Text1.Text = Text1.Text & a(i) & ","
Next i
For j = 1 To 10
Print a(j)
Next j
End Sub
我想问一下为什么文件in.txt中的数据并没有读到数组中呢?这个程序哪个地方有问题?