要向Data.dat 文件中添加数据,下面语句中正确的是______ 。
A: Open "Datdat" For OutputAs #1
B: Open "Datdaf' For InputAs #1
C: Open Datdat For OutputAs #I
D: Open Datdar For Append As #1
A: Open "Datdat" For OutputAs #1
B: Open "Datdaf' For InputAs #1
C: Open Datdat For OutputAs #I
D: Open Datdar For Append As #1
举一反三
- 若要把数据追加到顺序文件D:\Stu.txt末尾,可以使用下列语句实现的是( )。 A: Open "D:\Stu.txt" For Output As B: 1 C: Open "D:\Stu.txt" For Append As D: 1 E: Open D:\Stu.txt For Output As F: 1 G: Open D:\Stu.txt For Append As H: 1
- 要从磁盘上读入一个文件名为"d:\File.txt"的顺序文件,下面程序段正确的是( ). A: Open d:\File.txt For Input As B: 1 C: Open "d:\File.txt" For Output As D: 2 E: Open "d:\File.txt" For Input As F: 2 G: Open "d:\File.txt" For Append As H: 1
- 用( )语句打开顺序文件File1.txt后,可以进行写操作 A: Open "File1.txt" For Input As B: 1 C: Open "File1.txt" For Output As D: 1 E: Open "File1.txt" For Random As F: 1 G: Open "File1.txt" For Binary As H: 1
- 如果从数据文件 c:\data.txt 中读取数据时,以下打开文件方式中,正确的是( ). A: Open c:\data.txt For Input As B: 1 C: Open c:\data.txt For Output As D: 1 E: Open "c:\data.txt" For Input As F: 1 G: Open "c:\data.txt" For Output As H: 1
- 为了读取数据,需打开顺序文件“D:\data5.txt”,以下正确的命令是 A: Open D:\data5.txt For Input As #1 B: Open "D:\data5.txt"For Input As #2 C: Open D:\data5.txt For Output As #1 D: Open "D:\data5.txt"For Output As #2