Jump to content

Check that file exists: Difference between revisions

New post using C++ 17 syntax. An existing post using an external library, boost, was retained.
m (Update Lang example: Fix spelling of Lang)
(New post using C++ 17 syntax. An existing post using an external library, boost, was retained.)
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}}==
<syntaxhighlight lang="clojure">
894

edits

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