9.4. ACCESS
9.4 ACCESS — Checks file access modes
- Description:
-
ACCESS(NAME, MODE)
checks whether the file NAME exists, is readable, writable or executable. Except for the executable check,ACCESS
can be replaced by Fortran 95'sINQUIRE
. - Standard:
- GNU extension
- Class:
- Inquiry function
- Syntax:
-
RESULT = ACCESS(NAME, MODE)
- Arguments:
-
NAME Scalar CHARACTER
of default kind with the file name. Tailing blank are ignored unless the characterachar(0)
is present, then all characters up to and excludingachar(0)
are used as file name.MODE Scalar CHARACTER
of default kind with the file access mode,