CFile::Flush
Forces any data remaining in the file buffer to be written to the file.
virtual void Flush( );
Remarks
The use of Flush does not guarantee flushing of CArchive buffers. If you are using an archive, call CArchive::Flush first.
Example
See the example for CFile::SetFilePath.
Requirements
Header: afx.h