Intel® Fortran Compiler 17.0 Developer Guide and Reference

Statements for Input and Output

The following table lists statements used for input and output.

Name

Procedure Type

Description

ACCEPT

Statement

Similar to a formatted, sequential READ statement.

BACKSPACE

Statement

Positions a file to the beginning of the previous record.

CLOSE

Statement

Disconnects the specified unit.

DELETE

Statement

Deletes a record from a relative file.

ENDFILE

Statement

Writes an end-of-file record or truncates a file.

FLUSH

Statement

Causes data written to a file to become available to other processes or causes data written to a file outside of Fortran to be accessible to a READ statement.

INQUIRE

Statement

Returns the properties of a file or unit.

OPEN

Statement

Associates a unit number with an external device or file.

PRINT(or TYPE)

Statement

Displays data on the screen.

READ

Statement

Transfers data from a file to the items in an I/O list.

REWIND

Statement

Repositions a file to its first record.

REWRITE

Statement

Rewrites the current record.

WRITE

Statement

Transfers data from the items in an I/O list to a file