Jump to content

Check that file exists: Difference between revisions

no edit summary
(Added PicoLisp)
No edit summary
Line 43:
Print_Dir_Exist ("/docs");
end File_Exists;</lang>
 
=={{header|Aikido}}==
The <code>stat</code> function returns a <code>System.Stat</code> object for an existing file or directory, or <code>null</code> if it can't be found.
<lang aikido>
function exists (filename) {
return stat (filename) != null
}
 
exists ("input.txt")
exists ("/input.txt")
exists ("docs")
exists ("/docs")
 
</lang>
 
=={{header|AutoHotkey}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.