代码
std::fstream f; f.open("D:/debugTime.txt", std::ios::app); f << "time of XXX :" << 10 << std::endl; f.close();
C++创建或者打开文本,记录运行日志
原文:https://www.cnblogs.com/alexYuin/p/9614154.html