Cannot Detect End of File

Product Version(s): 3.20
Operating System:   MS-DOS
Flags: ENDUSER | docerr
Last Modified:  7-SEP-1988    ArticleIdent: Q10539

Problem:

I am unable to detect end-of-file for direct access files.

Response:

Page 81 of the "Microsoft FORTRAN Compiler Reference" manual
incorrectly states ENDFILE works when linked with the DOS2FOR library.

The file-handling methods under DOS Versions 1.x cannot work with
direct-access files. However, you can detect end-of-file for direct
access files if you link with the DOS2FOR library that uses DOS
Versions 2.x file-handling methods.