HP Fortran Programmer's Reference (September 2007)

HP Fortran statements
REWIND
Chapter 10 455
Examples
The following example of the REWIND statement repositions the file connected to unit 10 to its
initial point:
REWIND 10
The next example repositions to its initial point the file connected to unit 21. If an error occurs
during the execution of the statement, control passes to the statement at label 99, and the
error code is returned in ios:
REWIND (21, ERR=99, IOSTAT=ios)
Related statements
BACKSPACE, ENDFILE, and OPEN
Related concepts
For information about I/O concepts, see Chapter 8, “I/O and file handling,” on page 201. This
chapter also lists example programs that use I/O.