VC++(MFC) CStdioFile 寫入/讀取 文字檔
VC++(MFC) CStdioFile 寫入/讀取 文字檔
CStdioFile m_File;
m_File.Open(_T(“Template.mfc”), CFile::modeCreate | CFile::modeWrite);
m_File.WriteString(StrOutput);
m_File.Close();
//—————
CStdioFile m_File;
m_File.Open(_T(“Template.mfc”), CFile::modeRead);
while(m_File.ReadString(strRead))
{
…;
}
m_File.Close();