Private Sub next1_Click()
Open "a.txt" For Input As #1
Line Input #1, Nextline
name1.Caption = Nextline
Close #1
End Sub
现在只能读取第一行的内容,如果加了循环语句就直接读到了文件最后一行的内容。下面:
Private Sub next1_Click()
OPEN "a.txt" FOR INPUT AS #1
DO WHILE NOT EOF(1)
LINE INPUT #1, nextline
name1.Caption = Nextline
LOOP
CLOSE #1
END Sub
我想问一下怎样才能按一下,读取一行,再按一下读取另一行!我要在屏幕显示出的,一下子全读出来没用~~~
请高手教育!!