C盘中P1.c.txt文件的内容为:abcde。A盘中P1.c.txt为空文档。 #include<stdio.h> #include<stdlib.h> main() FILE *f1,*f2; int k; if((fl=fopen("C:\\p1.c.txt","r"))==NULL) printf("can not open file! \n"); exit(0);
if((f2=fopen("A:\\p1.c.txt","w"))==NULL) printf("can not open file! \n"); exit(0);