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

<strong>HP</strong> <strong>Fortran</strong> supports three types of I/O statements:<br />

Data transfer statements (see Table 8-4)<br />

File positioning statements (see Table 8-5)<br />

Auxiliary statements (see Table 8-6)<br />

For detailed information about all I/O statements, refer to Chapter 10, “<strong>HP</strong> <strong>Fortran</strong><br />

statements,” on page 233.<br />

Table 8-4 Data transfer statements<br />

Statement Use<br />

ACCEPT Inputs data from the preconnected default input device<br />

(standard input) (extension).<br />

DECODE Inputs data from an internal file (extension).<br />

ENCODE Outputs data to an internal file (extension).<br />

PRINT Outputs data to the preconnected default output device<br />

file (standard output)<br />

READ Inputs data from a connected or automatically opened<br />

unit.<br />

TYPE Synonym for the PRINT statement (extension).<br />

WRITE Outputs data to a connected or automatically opened<br />

unit.<br />

I/O and file handling<br />

I/O statements<br />

NOTE Although the DECODE and ENCODE statements are available as compatibility<br />

extensions for use with internal files, they are nonportable and are provided for<br />

compatibility with older versions of <strong>Fortran</strong>. To keep your programs<br />

standard-conforming and portable, you should use the READ and WRITE<br />

statements with both external and internal files.<br />

Chapter 8 185

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

Saved successfully!

Ooh no, something went wrong!