Check that file exists: Difference between revisions
Content added Content deleted
(Added PicoLisp) |
No edit summary |
||
Line 43: | Line 43: | ||
Print_Dir_Exist ("/docs"); |
Print_Dir_Exist ("/docs"); |
||
end File_Exists;</lang> |
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}}== |
=={{header|AutoHotkey}}== |