使用Dowhile循环从打开的文件中逐条读取记录。以下能够正确读取数据的程序段是( )

9 查阅

使用Dowhile循环从打开的文件中逐条读取记录。以下能够正确读取数据的程序段是( )

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

参考答案:

A

计算机二级