写文件
转载请注明来源:https://www.cnblogs.com/hookjc/
bool MGetInfo::WriteLog(CString str){
CString fileName=_T("log.txt");
CFile mFile(_T(fileName), CFile::modeWrite|CFile::modeCreate|CFile::modeNoTruncate);
if(!mFile) return false;
mFile.SeekToEnd();
mFile.Write(str,strlen(str));
mFile.Close();
return true;
}