判断文件是否存在 VC++

// 判断是否存在文件
BOOL pathIsFile(TCHAR* lpPath)
{
    // 过滤路径是文件夹的情况
  // Code by Lthis
if (PathIsDirectory(lpPath)) return FALSE; if (PathFileExists(lpPath)) return TRUE; return FALSE; }
原文地址:https://www.cnblogs.com/Lthis/p/4311543.html