先贴我的:
CString filename = pFdlg.GetPathName();
CStdioFile text(filename,CFile::shareDenyWrite);
//这一部分不返回换行符,需要自己添加

CString strtemp,strall=""; while(text.ReadString(strtemp) )
{
strall +=strtemp + "\r\n";
}
GetDlgItem(IDC_EDIT)->SetWindowText(strall) ;还有其他方法么?比如 LPTSTR 类型的