Anonymous user
Check that file exists: Difference between revisions
added standard ml
m (→{{header|Smalltalk}}: lang tag) |
(added standard ml) |
||
Line 279:
Using ''exists'' in the third and fourth case will return true for directories too.
=={{header|Standard ML}}==
<lang sml>OS.FileSys.access ("input.txt", []);
OS.FileSys.access ("docs", []);
OS.FileSys.access ("/input.txt", []);
OS.FileSys.access ("/docs", []);</lang>
=={{header|Tcl}}==
|