vb中怎么读取txt的一列
读取一个已经存在的txt中内容,输出其中大写字母P在txt中所处的行数和列数下面是我的思路,求大神指点
Dim temp as String
Open "\test.text" For Input As #1
Open "\output.text" For Output As #3
For i = 1 To 9 '行数
Line Input #1, temp '读取1行
For j = 1 To 9 '列数
...
中间少了几行不知道怎么写
。
If arr(i, j) = "P" Then
Print #3, i & "," & j
End If
next j
next i
Close #1