Return to Snippet

Revision: 11789
at February 18, 2009 16:29 by jimfred


Initial Code
CFile file;

// Open file using 3 flags.
file.Open( pFilename, CFile::modeCreate|CFile::modeNoTruncate|CFile::modeWrite );

file.SeekToEnd(); // Seek to append. Otherwise, it'll write the beginning.

file.Write(s, s.GetLength() ); // write some CString s.

file.Close();

Initial URL

                                

Initial Description

                                

Initial Title
MFC, log to file

Initial Tags

                                

Initial Language
C++