HP Fortran Programmer's Reference (September 2007)

I/O and file handling
I/O statements
Chapter 8 217
I/O statements
HP Fortran supports three types of I/O statements:
Data transfer statements (see Table 8-4)
File positioning statements (see Table 8-5)
Auxiliary statements (see Table 8-6)
For detailed information about all I/O statements, refer to Chapter 10, “HP Fortran
statements,” on page 267.
NOTE Although the DECODE and ENCODE statements are available as compatibility
extensions for use with internal files, they are nonportable and are provided for
compatibility with older versions of Fortran. To keep your programs
standard-conforming and portable, you should use the READ and WRITE
statements with both external and internal files.
Table 8-4 Data transfer statements
Statement Use
ACCEPT Inputs data from the preconnected default input device
(standard input) (extension).
DECODE Inputs data from an internal file (extension).
ENCODE Outputs data to an internal file (extension).
PRINT Outputs data to the preconnected default output device
file (standard output)
READ Inputs data from a connected or automatically opened
unit.
TYPE Synonym for the PRINT statement (extension).
WRITE Outputs data to a connected or automatically opened
unit.