无论用何种方式打开,若打开文件出现 了错误, fopen函数将返回NULL,为了正 确打开文件,建议用以下的程序段 if(fp=fopen(file a,r))==NULL) printf( cannot open this file! n); exit(o) <无论用何种方式打开,若打开文件出现 了错误,fopen函数将返回NULL,为了正 确打开文件,建议用以下的程序段: if((fp=fopen(“file_a”,”r”))= =NULL) {printf(“cannot open this file!\n); exit(0); }