CArchive::Flush
Visual Studio 2005
Forces any data remaining in the archive buffer to be written to the file.
void Flush( );
The member function Flush ensures that all data is transferred from the archive to the file. You must call CFile::Close to complete the transfer from the file to the storage medium.
Reference
CArchive ClassHierarchy Chart
CArchive::Close
CFile::Flush
CFile::Close