Intel® Fortran Compiler 16.0 User and Reference Guide

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