用Open "File1.txt" For _______ As #1语句打开顺序文件File1.txt后,可以进行写操作。
举一反三
- 用( )语句打开顺序文件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
- 用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”);
- 已有非空文本数据文件file.txt,要求读取该文件的所有数据,并在文件原有数据后添加新数据,可以使用“FILE *fp=fopen("file1.txt","【1】");”语句打开该文件。
- 以只读方式打开一个已有的文本文件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+");