Check the return value of fread/fwrite so the compiler doesn't complain. Only a