C 库函数int ferror(FILE *stream) 测试给定流stream 的错误标识符。 ... "w"); c = fgetc(fp); if( ferror(fp) ) { printf("读取文件:file.txt 时发生错误\n"); } ...
確定! 回上一頁