Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

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.