用( )语句打开顺序文件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
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
举一反三
- 用Open "File1.txt" For _______ As #1语句打开顺序文件File1.txt后,可以进行写操作。
- 用Open "File1.txt" For _______ As #1语句打开顺序文件File1.txt后,可以进行读操作。
- 以只读方式打开一个已存在的文本文件file1.txt,以下选项中正确的是 。 A: FILE *fp;fp=fopen(“file1.txt”,”r+”); B: FILE *fp;fp=fopen(“file1.txt”,”w”); C: FILE *fp;fp=fopen(“file1.txt”,”r”); D: FILE *fp;fp=fopen(“file1.txt”,”a”);
- 以只读方式打开一个已有的文本文件file1.txt,下面有关fopen函数正确的调用方式为________。 A: FILE *fp;fp=fopen("file1.txt","w"); B: FILE *fp;fp=fopen("file1.txt","r"); C: FILE *fp;fp=fopen("file1.txt","r+"); D: FILE *fp;fp=fopen("file1.txt","rb+");
- 下列哪一种是以顺序文件方式打开文件并进行写操作( ). A: Open "c:\file1.dat" For Output as B: 1 C: Open "c:\file1.dat" For Input as D: 1 E: Open "c:\file1.dat" For Print as F: 1 G: Open "c:\file1.dat" For Write as H: 1