FILE *fp1,*fp2;
if((fp1=fopen("D:\\test1.txt","w+"))==NULL) //切记,一定不要忘记前面的括号,否则结合方式问题,写不进去
{
printf("open file error");
exit(0);
}
fputs("sdsds",fp1);
fclose(fp1);
标签:test1,文件,语言,fclose,sdsds,fp1,FILE,fopen From: https://blog.51cto.com/u_15840342/5783644