02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

I/O and file handling<br />

I/O statements<br />

186<br />

ACCEPT and TYPE are also available as compatibility extensions for reading<br />

from standard input and writing to standard output. However, if you wish your<br />

programtobeportable,youshouldusetheREAD and PRINT statements instead<br />

of the ACCEPT and TYPE statements.<br />

Table 8-5 File positioning statements<br />

Statement Use<br />

BACKSPACE Moves the file pointer of the connected sequential file to<br />

the start of the previous record.<br />

ENDFILE Writes an end-of-file record as the next record of the<br />

sequential file.<br />

REWIND Moves the file pointer of the connected file to the initial<br />

point of the file.<br />

Table 8-6 Auxiliary statements<br />

Statement Use<br />

CLOSE Disconnects a unit from a file.<br />

INQUIRE Requests information about a file or unit.<br />

OPEN Connects an existing file to a unit, creates a file and<br />

connects it to a unit, or changes certain specifiers of a<br />

connection between a file and a unit.<br />

Chapter 8

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

Saved successfully!

Ooh no, something went wrong!