摘要:
HANDLE hFile; WIN32_FIND_DATA fileinfo; DWORD errorcode = 0; CString filename; hFile=FindFirstFile(_T("Storage Card\\*.*"),&fileinfo); while(hFile!=INVALID_HANDLE_VALUE&&errorcode!=ERROR_NO_MORE_FILES) { filename=fileinfo.cFileName; if(filename.Right(4)==_T(".d... 阅读全文
摘要:
CStudioFile 是CFile 的派生类,可逐行读写 CStudioFile f2; CString str; CString mstr; CString path; int n=0; path=_T("Storage Card\\shuipwy1.dat"); if( f2.Open(path,CFile::modeNoTruncate|CFile::modeRead) == false) { AfxMessageBox(_T("文件不存在")); } else { //f2.Se... 阅读全文