I want to input some contents to a file, but I\'d like to check first if a file with the name I wish to create exists. If so, I don\'t want to create any file, even if the f
As of C++17 there is:
if (std::filesystem::exists(pathname)) { ...