检查返回值fread和fwrite

检查返回值fread和fwrite