Skip to content

Files

5 lines (3 loc) · 404 Bytes

End of File in Fortran IO.md

File metadata and controls

5 lines (3 loc) · 404 Bytes

Tags: #software-engineering #fortran #scientific-computing

End of file (EOF) is handled separate from an I/O error in Fortran. Older, non-compliant compilers may treat them as the same, though specifying the end AND err parameters to read() is the correct way to distinguish and handle the conditions.

Once EOF or an error are encountered, all variables being read are considered undefined.