A-A+
在当前窗体有一个文本框Text1 在D盘的根目录存在数据文件data.txt 数据文件的内容是abc 10 20
问题详情
在当前窗体有一个文本框Text1,在D盘的根目录存在数据文件data.txt,数据文件的内容是
abc 10 20 30
efg 40 50 60
若运行程序,要在文本框中显示的内容是()。
Private Sub Form_Click()
Open "d:data.txt" For Input As #10
Do Until EOF(10)
Line Input #10, lines
Text1.Text = Text1.Text + Mid(lines, 5, 2)
Loop
Close #10
End Sub
A.abc
B.1040
C.efg
D.10 20