Check that file exists: Difference between revisions
Content added Content deleted
(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: | Line 965: | ||
testfile("/docs"); |
testfile("/docs"); |
||
}</syntaxhighlight> |
}</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}}== |
=={{header|Clojure}}== |