c文件的操作
#include <stdio.h>#include <stdlib.h>
main()
{FILE * fb;
char c;
if((fb=fopen("miww.txt","w"))==NULL);
{
printf("\n file cannot open!");
exit(0);}
while ((c=getchar())!='#')
fputc(c,fb);
fclose(fb);
}
这段程序运行时怎么一直显示file cannot open! 哪里出了问题