How can I check whether the folder is exist or not?
-
Hello all, I would like to know how can I check whether the folder is exist or not? Which function should I use in visual C++? and which library should I included into my program? Thanks! Nachi
-
Hello all, I would like to know how can I check whether the folder is exist or not? Which function should I use in visual C++? and which library should I included into my program? Thanks! Nachi
_access() can Determine file-access permission. Return Value Each of these functions returns 0 if the file has the given mode. The function returns –1 if the named file does not exist or is not accessible in the given mode; in this case, errno is set as follows: EACCES Access denied: file’s permission setting does not allow specified access. ENOENT Filename or path not found. Thinking in difference!
-
Hello all, I would like to know how can I check whether the folder is exist or not? Which function should I use in visual C++? and which library should I included into my program? Thanks! Nachi
I like using
_access()
myself, butGetFileAttributes()
is also available.