02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>HP</strong> <strong>Fortran</strong> statements<br />

WRITE<br />

WRITE<br />

Outputs data to external and internal files.<br />

Syntax<br />

WRITE (io-specifier-list) [output-list]<br />

output-list<br />

io-specifier-list<br />

[UNIT=]unit<br />

[FMT=] format<br />

462<br />

is a list of comma-separated data items for output. The data items can<br />

include expressions and implied-DO.<br />

is a list of the following comma-separated I/O specifiers:<br />

specifies the unit connected to the output file. unit can be one of the<br />

following:<br />

The name of a character variable, indicating an internal file<br />

An integer expression that evaluates to the unit connected to an<br />

external file<br />

An asterisk, indicating the preconnected unit 6 (standard output)<br />

If the optional keyword UNIT= is omitted, unit must be the first item in<br />

io-specifier-list. This is the only specifier required in<br />

io-specifier-list.<br />

specifies the format specification for formatting the data. format can be one<br />

of the following:<br />

An asterisk (*), specifying list-directed I/O<br />

The label of a FORMAT statement containing the format specification<br />

An integer variable that has been assigned the label of a FORMAT<br />

statement<br />

An embedded format specification<br />

If the optional keyword FMT= is omitted, format must be the second item in<br />

io-specifier-list.<br />

Chapter 10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!