HP Fortran Programmer's Reference (September 2007)

HP Fortran statements
WRITE
Chapter 10496
WRITE
Outputs data to external and internal files.
Syntax
WRITE (
io-specifier-list
) [
output-list
]
output-list
is a list of comma-separated data items for output. The data items can
include expressions and implied-DO.
io-specifier-list
is a list of the following comma-separated I/O specifiers:
[UNIT=]
unit
specifies the unit connected to the output 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 the preconnected unit 6 (standard output)
If the optional keyword UNIT= is omitted,
unit
must be the first item in
io-specifier-list
. This is the only specifier required 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
An integer variable that has been assigned the label of a FORMAT
statement
An embedded format specification
If the optional keyword FMT= is omitted,
format
must be the second item in
io-specifier-list
.