Jump to content

Check that file exists: Difference between revisions

Removed post, for the time being, because it requires more work to fully complete the task.
(New post using C++ 17 syntax. An existing post using an external library, boost, was retained.)
(Removed post, for the time being, because it requires more work to fully complete the task.)
Line 965:
testfile("/docs");
}</syntaxhighlight>
 
===Using C++ 17===
<syntaxhighlight lang="c++">
 
#include <iostream>
#include <filesystem>
 
int main() {
std::cout << std::filesystem::exists("hello_world.txt") << std::endl;
}
</syntaxhighlight>
 
=={{header|Clojure}}==
891

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.