若要把数据追加到顺序文件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
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
举一反三
- 打开一个已经存在的非空文本文件,若文件名为stu,则正确的打开语句为() A: FILE*fp; B: fp=fopen("stu.txt","r") C: B.FILE*fp; D: fp=fopen(stu.txt,r) E: C.FILE*fp; F: fP=fopen("stu,txt","wb") G: D.FILE*fp; H: fp=fopen("stu.txt",w
- 若有定义FILE *fp,则下列哪条语句可以实现将以写的方式打开文件d:\\stu.txt文件( ) A: fopen_s(&fp,“d:\\stu.txt”,"w") B: fopen_s(&fp,“d:\\stu.txt”,"w"); C: fopen_s(&fp,“d:\\stu.txt”,"r"); D: fopen_s(&fp,“d:\\stu.txt”,"wb");
- 下列程序的功能是:将数据1,2,..,8写入顺序文件Num. txt中请补充完整。 Private Sub Form_Click ( ) Dim i As Integer Open "Num. txt" For Output As #1 For i = 1 To 8 【13】 Next Close #1 End Sub
- 用( )语句打开顺序文件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
- 要从磁盘上读入一个文件名为"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