Check that file exists: Difference between revisions

Content added Content deleted
(added Fortran)
Line 97: Line 97:
s" docs" .exists
s" docs" .exists
s" /docs" .exists
s" /docs" .exists

=={{header|Fortran}}==
{{works with|Fortran|90 and later}}
Cannot check for directories in Fortran
LOGICAL :: file_exists
INQUIRE(FILE="input.txt", EXIST=file_exists) ! file_exists will be TRUE if the file exists and FALSE otherwise
INQUIRE(FILE="/input.txt", EXIST=file_exists)


=={{header|Haskell}}==
=={{header|Haskell}}==