下列可以打开随机文件的语句是

admin2018-10-15  16

问题 下列可以打开随机文件的语句是

选项 A、Open”filel.dat”For Input As#1
B、Open”filel.dat”For Append As#1
C、Open”filel.dat”For Output As #1
D、Open”filel.dat”For Random As #1 len=20

答案D

解析 本题考查文件操作,VB中打开随机文件的语法为:
    Open<文件名>For Random As[#]<文件号>[Len=<记录长度>1
    其中:For Random表示打开随机文件,Len用来指定记录的长度,记录长度的缺省值为128个字节。
转载请注明原文地址:https://kaotiyun.com/show/YLFp777K
0

相关试题推荐
最新回复(0)