转载请注明来源: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;
}

来源:python脚本自动迁移

相关文章:

  • 2021-12-10
  • 2021-05-30
  • 2021-06-19
  • 2021-06-09
  • 2021-05-28
猜你喜欢
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-29
相关资源
相似解决方案