下面语句中能够打开随机文件的是

admin2020-04-18  27

问题 下面语句中能够打开随机文件的是

选项 A、Open“file.txt”For Random As#1
B、Open“file.txt?t For Input As#1
C、Open“file.txt”For Output As#1
D、Open“file.txt”,For Append As#1.

答案A

解析 Vlsusl Basic程序中关于文件的操作,主要是先打开一个文件,然后对这个文件进行读或写的操作,操作完成后,关闭这个文件。打开文件的基本格式为:Opcn FiIeName F0r M0de As#FileNumber。打开方式主要有output、Append、Input、Random等几种方式,其中打开随机文件使用Random方式打开。
转载请注明原文地址:https://kaotiyun.com/show/lZTp777K
0

最新回复(0)