Next: , Previous: Abs Intrinsic, Up: Table of Intrinsic Functions Access Intrinsic

     Access(Name, Mode)

Access: INTEGER(KIND=1) function.

Name: CHARACTER; scalar; INTENT(IN).

Mode: CHARACTER; scalar; INTENT(IN).

Intrinsic groups: unix.


Checks file Name for accessibility in the mode specified by Mode and returns 0 if the file is accessible in that mode, otherwise an error code if the file is inaccessible or Mode is invalid. See access(2). A null character (`CHAR(0)') marks the end of the name in Name—otherwise, trailing blanks in Name are ignored. Mode may be a concatenation of any of the following characters:

Read permission
Write permission
Execute permission