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’s INQUIRE.

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 character achar(0) is present, then all characters up to and excluding achar(0) are used as file name.
MODE 登录查看完整内容