FORTRAN 77 Language Reference

Restrictions

u must be connected for sequential access. Execution of an END FILE statement on a direct-access file is not defined in the FORTRAN 77 Standard, and is unpredictable. Do not use an END FILE statement on a direct-access file.