BOOL FileExists (LPCTSTR lpszFileName) {BOOL bRet; HANDLE hFind; WIN32_FIND_DATA wfd; hFind = FindFirstFile (lpszFileName, & wfd);! BRet = hFind = INVALID_HANDLE_VALUE; FindClose (hFind); return bRet;}
Code Description: LPSZFileName: To determine if the file name exists. Return Value: Returns true if it exists, otherwise returns false.