## 12.6.14 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 specification 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

then Compaq Fortran generates a file name in the form FORnnn.DAT, where nnn is the logical unit number (with leading zeros, if necessary).

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.
- On allowable file specifications, see the appropriate manual in your system documentation set.

Previous Page Next Page Table of Contents