Jump to content

Check that file exists: Difference between revisions

Added Oz example.
m (moved File Exists to File/Exists: Take advantage of MediaWiki's concept of page hierarchies.)
(Added Oz example.)
Line 421:
Sys.file_exists "/input.txt";;
Sys.file_exists "/docs";;</lang>
 
=={{header|Oz}}==
<lang oz>declare
[Path] = {Module.link ['x-oz://system/os/Path.ozf']}
in
{Show {Path.exists "docs"}}
{Show {Path.exists "input.txt"}}
{Show {Path.exists "/docs"}}
{Show {Path.exists "/input.txt"}}</lang>
 
=={{header|PHP}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.