Intel® Fortran Compiler 16.0 User and Reference Guide
The POSITION specifier indicates the position of a file connected for sequential access. It takes the following form:
POSITION = pos
pos |
Is a scalar default character expression that evaluates to one of the following values:
|
The default is 'ASIS'. (On Fortran I/O systems, this is the same as 'REWIND'.)
A new file (whether specified as new explicitly or by default) is always positioned at its initial point.
In addition to the POSITION specifier, you can use position statements. The BACKSPACE statement positions a file back one record. The REWIND statement positions a file at its initial point. The ENDFILE statement writes an end-of-file record at the current position and positions the file after it. Note that ENDFILE does not go the end of an existing file, but creates an end-of-file where it is.