SysTutorials Forums QA How to test a file or directory exists in C++?

How to test a path (a file or directory exists) in C++?

In Bash, the [ -f ] and [ -d ] tests can test whether a file or a directory exist. What are the corresponding C++ ways for these tests?

Reply To: How to test a file or directory exists in C++?
Your information:





<a href="" title="" rel="" target=""> <blockquote cite=""> <code> <pre> <em> <strong> <del datetime=""> <ul> <ol start=""> <li> <img src="" border="" alt="" height="" width="">

Please share if you like this post: