## 13.6.13 FILE Specifier

The FILE specifier indicates the name of the file to be connected to the unit. It takes the following form:

  FILE = name
  name
  Is a character or numeric expression.

The name can be any pathname allowed by the operating system.

Any trailing blanks in the name are ignored.

If the following conditions occur:

- FILE is omitted
- The unit is not connected to a file
- STATUS='SCRATCH' is not specified
- The corresponding FORTn environment variable is not set for the unit number

then Compaq Fortran generates a file name in the form fort.n, where n is the logical unit number. On Windows systems, if compiler option /fpscomp:general is specified, omitting FILE implies STATUS='SCRATCH'.

If the file name is stored in a numeric scalar or array, the name must consist of ASCII characters terminated by an ASCII null character (zero byte). However, if it is stored in a character scalar or array, it must not contain a zero byte.

For More Information:

- On default file name conventions, see your user manual or programmer's guide.
- On allowable file pathnames, see the appropriate manual in your system documentation set.

Previous Page Next Page Table of Contents