Next: High Performance Fortran
Up: Input / Output
Previous: Edit Descriptors
- CLOSE unattaches the unit number specified in the statement.
This should always be used to add an end of file mark at the
closure point. It is an error to close a file that is not
open.
- REWIND simply puts the file pointer back to the start.
- BACKSPACE moves the file pointer is moved back one record,
however, it often puts the file pointer back to the start, and
then fast forwards.
- ENDFILE forces an end-of-file to be written into the
file but the file remains open.
The above statements have other specifiers such as IOSTAT,
For example,
REWIND (UNIT=14)
BACKSPACE (UNIT=17)
ENDFILE (17)
CLOSE (17, IOSTAT=ival)
Now try this question
Now try this question
Now try this question
Now try this question
Now try this question
Now try this question
Return to corresponding overview page
Next: High Performance Fortran
Up: Input / Output
Previous: Edit Descriptors
©University of Liverpool, 1997
Wed May 28 20:20:27 BST 1997Not for commercial use.