FORTRAN Reference Manual

Introduction to File I/O in the HP NonStop
Environment
FORTRAN Reference Manual528615-001
5-24
Operations on HP-defined Files
Operations on HP-defined Files
Table 5-6 shows the operations that you can perform on HP-defined files. For
additional information about $RECEIVE and process files, see Section 14, Interprocess
Communication.
Considerations
If your program uses a POSITION statement for a relative file, you cannot rewind or
backspace the file after executing the POSITION statement.
Control Specifiers in I/O Statements
I/O statements are described in Section 7, Statements.
Table 5-7 on page 5-25 describes the most commonly used I/O control specifiers.
Table 5-6. Valid Operations on HP-defined Files
File Type Read Write Rewind Backspace Endfile Position
Magnetic tape Y Y Y Y Y N
Card reader Y N N N N N
Printer, console N Y N N N N
Terminal Y Y N N N N
Process Y Y Y N N N
$RECEIVE Y Y N N N N
EDIT format file Y Y* Y Y* Y* Y*
Unstructured Y Y Y Y Y Y
Entry-sequence Y Y Y N N N
Key-sequence Y Y N N N Y
Relative Y Y Y Y N Y
* Operation is not valid in a FORTRAN program that runs as a NonStop process