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

ID 767251
Date 9/08/2022
Public

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

Document Table of Contents

Forms for Stream READ Statements

The forms for stream READ statements take the same forms as sequential READ statements. A POS specifier may be present to specify at what file position the READ will start.

You can impose a record structure on a formatted, sequential stream by using a new-line character as a record terminator (see intrinsic function NEW_LINE). There is no record structure in an unformatted, sequential stream.

The INQUIRE statement can be used with the POS specifier to determine the current file position in a stream file.

Examples

The following example shows stream READ statements:

  READ (12 ) I         !stream reading without POS= specifier
  READ (12,POS=10) J   !stream reading with POS= specifier  

See Also