if((fp=fopen(strfilename,"r+"))==NULL) { printf("文件%s不存在!\n",strfilename); return -1; } if((temp=fopen("tempfile.txt","w+"))==NULL) { printf("临时文件创建失败!\n"); return -1; }