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 />

OPEN<br />

OPEN<br />

Connects file to a unit.<br />

Syntax<br />

OPEN (io-specifier-list)<br />

io-specifier-list<br />

[UNIT=]unit<br />

ACCESS=character-expression<br />

Table 10-33<br />

ACTION=character-expression<br />

376<br />

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

specifies the unit to connect to an external file. unit must be an integer<br />

expression that evaluates to a number greater than 0. If the optional<br />

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

io-specifier-list.<br />

specifies the method of file access. character-expression can be one of the<br />

following arguments:<br />

'DIRECT' Open file for direct access.<br />

'SEQUENTIAL' Open file for sequential access<br />

(default).<br />

' POSITION=<br />

APPEND'<br />

Table 10-34<br />

To open a file for append (to<br />

positionthefilejustbeforethe<br />

end-of-file record)<br />

specifies the allowed data-transfer operations. character-expression can<br />

be one of the following arguments:<br />

'READ' Do not allow WRITE and<br />

ENDFILE statements.<br />

'WRITE' Do not allow READ statements.<br />

Chapter 10

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

Saved successfully!

Ooh no, something went wrong!