CStdioFile file; if (!file.Open(GetLogFileName(), CFile::modeCreate|CFile::modeNoTruncate|CFile::modeWrite|CFile::typeText)) { // fatal } file.SeekToEnd(); file.WriteString(szLog); file.Close();
参考サイト
CStdioFile Class
https://msdn.microsoft.com/en-us/library/a499td6y.aspx