04 2013 档案

MFC获取文件操作
摘要:MFC文件操作大全1.创建文件夹 CreateDirectory(%%1,NULL);2.创建文件 CFile file; file.Open(%%1,CFile::modeCreate|CFile::modeWrite); 3.删除文件 DeleteFile(%%1);4.删除文件夹 RemoveDirectory(%%1); 5.删除一个目录下所有的文件夹 CFileFind finder; CString path; path.Format("%s\*.*",%%1); BOOL bWorking = finder.FindFile(path); while (bWo 阅读全文

posted @ 2013-04-10 16:24 zhixing 阅读(2973) 评论(1) 推荐(0)