单项选择题
有如下程序, 若文本文件f1.txt中原有内容为:good,则运行以下程序后文件f1.txt中的内容为 #include <stdio.h> int main() { FILE *fp1; fp1=fopen("f1.txt","w"); if (fp1 == NULL) { printf("cannot open the file./n"); exit(0); } fprintf(fp1,"abc"); fclose(fp1); return 0; }
A、abc
B、goodabc
C、good
D、abcgood
A.txt中原有内容为:good,则运行以下程序后文件f1.txt中的内容为
B.h>
C.txt","w");
D./n");