文件存在、权限检测
检测文件是否存在,是否具有读写权限等:
int _access( const char *path, int mode );检测一个文件是否存在,使用api:
PathFileExists(LPCTSTR pszPath);
判断一个路径是否是文件夹:
BOOL PathIsDirectory(LPCTSTR pszPath);
Returns TRUE if the path is a valid directory, or FALSE otherwise.
文件存在、权限检测
检测文件是否存在,是否具有读写权限等:
int _access( const char *path, int mode );检测一个文件是否存在,使用api:
PathFileExists(LPCTSTR pszPath);
判断一个路径是否是文件夹:
BOOL PathIsDirectory(LPCTSTR pszPath);
Returns TRUE if the path is a valid directory, or FALSE otherwise.