问题
单项选择题
如果准备读文件,打开顺序文件"text.dat"的正确语句是
A.Open "texdat" For Write As#1
B.Open "texdar" For Binary As#1
C.Open "texdat" For Input As#1
D.Open "texdat" For Random As#1
答案
参考答案:C
解析: 顺序文件的读操作由Input语句来实现。
如果准备读文件,打开顺序文件"text.dat"的正确语句是
A.Open "texdat" For Write As#1
B.Open "texdar" For Binary As#1
C.Open "texdat" For Input As#1
D.Open "texdat" For Random As#1
参考答案:C
解析: 顺序文件的读操作由Input语句来实现。