SyntaxFix
Write A Post
Hire A Developer
Questions
In C++17 :
#include <experimental/filesystem> bool is_file_exist(std::string& str) { namespace fs = std::experimental::filesystem; fs::path p(str); return fs::exists(p); }