第1个回答 2013-12-18
bool FileExist(char* strPrePath, const char* strFileName)
{
CFileFind cFindfile;
char strPath[2*256];
sprintf(strPath, "%s%s%s", strPrePath, "\\", strFileName);
return cFindfile.FindFile(strPath);
}
// strPrePath是文件所在路径不包括文件名 strFileName是文件名