摘要: 方法一、 POFSTRUCT lpOpenBuf=new OFSTRUCT; HFILE hFile=OpenFile(strFileName,lpOpenBuf,OF_EXIST); if(hFile!=HFILE_ERROR) { // file exist. } 方法二、 #include CString m_Edit=“f://test.txt”;//从Edit得到的字符串 ifstream infile(m_Edit); if(!infile) { AfxMessageBox( "该文件不存在 "); } 方法三、 char *lpszStr= "C:/ 阅读全文
posted @ 2011-11-13 17:40 rookieeeeee 阅读(5315) 评论(0) 推荐(0) 编辑