打开第 7 题生成的顺序文件 Myfile2.txt ,读取文件中的所有数据,并将数据直接显示在窗体上。()_____ Input 1,x Print x Loop Close 1
A.”
F.txt”
B.”f” ﹠ “.txt”
C.
F.txt
D.f ﹠ “.txt”
A.”
F.txt”
B.”f” ﹠ “.txt”
C.
F.txt
D.f ﹠ “.txt”
F.txt”
B.”f” ﹠ “.txt”
C.
F.txt
D.f ﹠ “.txt”
A、OPEN INPUT.DAT FOR INPUT AS #1
B、OPEN INPUT.DAT FOR OUTPUT AS #1
C、OPEN "INPUT.DAT" FOR INPUT AS #1
D、OPEN "I", #1 INPUT.DAT
A.Open"c:\File1.txt"ForInputAs#1:
DoWhileNotEOF(1):
LineInput#1,strLine:
Loop
B.Open"c:\File 1.txt"ForInputAs#1:
DoWhileEOF(#1):
LineInput#1,strLine:
Loop
C.FileNo=FreeFile:
OpenFileNoForInputAs#1:
DoWhileNotEOF(FileNo):
LineInput#1,strLine:
Loop
D.FileNo=FreeFile:
OpenFileNoForInputAs#1:
DoWhileEOF(#FileNo):
LineInput#1,strLine:
Loop
DimsrAsStreamReader
'打开将要读取的文件.
sr=File.OpenText(“①__________”)
'从文件中读取行.
DimxAsString
Whilesr.②__________<>-1
x=sr.ReadLine()
TextBox2.Text&=x&vbCrLf
EndWhile
TextBox2.Text&=vbCrLf&"------------theend------------"
sr.Close()
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!