HP Fortran Programmer's Reference (September 2007)

HP Fortran statements
READ
Chapter 10440
READ
Inputs data from external and internal files.
Syntax
The syntax of the READ statement can take one of the following forms:
Long form (for use when reading from a connected file):
READ (
io-specifier-list
) [
input-list
]
Short form (for use when reading from standard input):
READ
format
[,
input-list
]
Short namelist-directed form (for use when reading from standard input into a namelist
group):
READ
name
io-specifier-list
is a list of the following comma-separated I/O specifiers:
[UNIT=]
unit
specifies the unit connected to the input file.
unit
can be one of the
following:
The name of a character variable, indicating an internal file
An integer expression that evaluates to the unit connected to an
external file
An asterisk, indicating a pre-connection to unit 5 (standard input)
If the optional keyword UNIT= is omitted,
unit
must be the first item in
io-specifier-list
.
[FMT=]
format
specifies the format specification for formatting the data.
format
can be one
of the following:
An asterisk (*), specifying list-directed I/O.
The label of a FORMAT statement containing the format specification.