怎么才能把txt中的数据一个一个的读到二维数组中
12.txt数据内容如下:
12 58 69 88
74 56 96 98
12 58 64 32
48 59 23 56
54 56 13 12
Private Sub dakai_Click()
Dim a(1 To 5, 1 To 4) As String, i As Integer, j As Integer
Open "d:\12.txt" For Input As #1
For i = 1 To 5
For j = 1 To 4
Input #1, a(i, j)
Print a(i, j)
Next j
Next i
End Sub
为什么回出错?怎么才能把12.txt中的数据一个一个的读到二维数组中?