CString strFilter="文本文件(*.txt)|*.txt";
CFileDialog openDlg(TRUE,"txt",NULL,OFN_HIDEREADONLY|OFN_OVERWRITEPROMPT,strFilter,NULL);
if(openDlg.DoModal()!=IDOK)
return;
CString strPathName=openDlg.GetPathName();
CStdioFile FileOut;
FileOut.Open(strPathName,CFile::modeRead);
CString str,sText="";
do
{
FileOut.ReadString(str);
sText=sText+str+"\r\n";
}while(FileOut.GetPosition!=FileOut.GetLength());
m_sourceEdit=sText;
UpDateData(false);