/ Published in: C++
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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();