Your file is probably not opened in binary mode but in text mode. Check your open flags. Also, why are you using C-commands in a C++ environment. For files within MFC you have a CFile object. CFile...