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

admin2016-12-13  34

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

选项 A、Open"file.txt"For Random As#1
B、Open"file.txt"For Input As#1
C、Open"file.txt"For Output As#1
D、Open"file.txt"For Append As#1

答案A

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

最新回复(0)