txt文件记录

ofstream outfile(sCheckInfoSavePath);
for (int i=0;i<vecStrPrompt.size();i++)
{
outfile << (CStringA)(LPCTSTR)(vecStrPrompt[i]) << endl;
}
outfile.close();

原文地址:https://www.cnblogs.com/xzh1993/p/13671395.html