C语言文件读写错误检测
if (ferror(f))//文件读取中发生错误,检查刚刚是否发生错误,如果错误发生就退出 { printf("Error: there is an error in file reading!\n"); exit(1); }
posted on 2023-05-04 19:24 david_helloworld 阅读(60) 评论(0) 收藏 举报
if (ferror(f))//文件读取中发生错误,检查刚刚是否发生错误,如果错误发生就退出 { printf("Error: there is an error in file reading!\n"); exit(1); }
posted on 2023-05-04 19:24 david_helloworld 阅读(60) 评论(0) 收藏 举报