Intel® Fortran Compiler 16.0 User and Reference Guide
The STATUS specifier indicates the status of a file when it is opened. It takes the following form:
STATUS = sta
sta |
Is a scalar default character expression that evaluates to one of the following values:
|
Scratch files go into a temporary directory and are visible while they are open. Scratch files are deleted when the unit is closed or when the program terminates normally, whichever occurs first.
To specify the path for scratch files, you can use one of the following environment variables:
On Windows* OS: FORT_TMPDIR, TMP, or TEMP, searched in that order
On Linux* OS and OS X*: FORT_TMPDIR or TMPDIR, searched in that order
If no environment variable is defined, the default is the current directory.
The default is 'UNKNOWN'. This is also the default if you implicitly open a file by using WRITE. However, if you implicitly open a file using READ, the default is 'OLD'. If you specify compiler option f66 (or OPTIONS/NOF77), the default is 'NEW'.
The STATUS specifier can also appear in CLOSE statements to indicate the file's status after it is closed. However, in CLOSE statements the STATUS values are the same as those listed for the DISPOSE specifier.