要从磁盘上读入一个文件名为“c:\t1.txt” 的顺序文件,下列( )是正确的语句
A: F = "c:\t1.txt" , Open F For Input As #2
B: F ="c:\t1.txt" , Open "F" For Input As #2
C: Open c:\t1.txt For Input As #2
D: Open "c:\t1.txt" For Output As #2
A: F = "c:\t1.txt" , Open F For Input As #2
B: F ="c:\t1.txt" , Open "F" For Input As #2
C: Open c:\t1.txt For Input As #2
D: Open "c:\t1.txt" For Output As #2
举一反三
- 要从磁盘上新建一个名为"c:\t1.txt"的顺序文件,如下语句中正确的是(). A: F="c:\t1.txt" Open "F" For Append As B: 2 C: F="c:\t1.txt" Open "F" For Output As D: 2 E: Open c:\t1.txt For Output As F: 2 G: Open "c:\t1.txt" For Output As H: 2
- 要从磁盘上新建一个名为〝c:\t1.txt〞的顺序文件,如下语句中正确的是 A: F=〝c:\t1.txt〞Open〝F〞ForAppendAs B: 2 C: F=〝c:\t1.txt〞Open〝F〞ForOutputAs D: 2 E: Openc:\t1.txtForOutputAs F: 2 G: Open〝c:\t1.txt〞ForOutputAs H: 2
- 要从磁盘上读入一个文件名为“c:\t1.txt”的顺序文件,下列()正确。 A: f=”c:\t1.txt” B: f=”c:\t1.txt”Open“f”ForInputAs#1OpenfForInputAs#1 C: Open”c:\t1.txt”ForoutputAs#1 D: Openc:\t1.txtForinputAs#1
- 要从磁盘上读入一个文件名为“c:\t1.txt”的顺序文件,下列()正确。 A: f=”c:\t1.txt” B: f=”c:\t1.txt”Open“f”ForInputAs#1OpenfForInputAs#1 C: Open”c:\t1.txt”ForoutputAs#1 D: Openc:\t1.txtForinputAs#1
- 若要从磁盘上读一个文件名为“C:\T1.txt”的顺序文件,则应使用下列________程序段打开文件 A: Dim F As StringF = "C:\T1.txt"FileOpen(1, F, OpenMode.Input) B: Dim F As StringF = "C:\T1.txt"FileOpen(1, "F", OpenMode.Input) C: FileOpen(1, "C:\T1.txt", OpenMode.Output) D: FileOpen(1, C:\T1.txt, OpenMode.Input)