10.6.8 DEFAULTFILE Keyword

The DEFAULTFILE keyword specifies a default file pathname string. It takes the following form:

DEFAULTFILE = ce
ce
Is a character string that contains a default file pathname string.

This keyword supplies a value to the Fortran I/O system that is prefixed to the FILE keyword.

The default file pathname string is used primarily when accepting file pathnames interactively. File pathnames known to a user program are normally completely specified in the FILE keyword.

If the DEFAULTFILE keyword value does not end in a slash (/), then one is added.

If the DEFAULTFILE keyword is not supplied in the OPEN statement, the Fortran I/O system uses the current working directory.

The following example opens the existing file /usr/users /someone/test.dat:

 OPEN (unit=10, DEFAULTFILE='/usr/users/someone/', FILE='test.dat',
1     FORM='FORMATTED', STATUS='OLD')


Previous Page Next Page Table of Contents