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

ID 767251
Date 6/24/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 and Intrinsic Functions for Input and Output

The following table lists statements and intrinsic functions 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.

FORMAT

Statement

Associates a statement label with a sequence of format edit descriptors. The statement label is used in other input and output statements as the format specifier.

INQUIRE

Statement

Returns the properties of a file or unit.

IS_IOSTAT_END

Intrinsic function

Tests IOSTAT value for end of file.

IS_IOSTAT_EOR

Intrinsic function

Tests IOSTAT value for end of record.

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.