End of File and End of Record Marks


 

The End Of File (EOF) and End Of Record (EOR) marks used by this PL/B implementation are both in compliance and compatible with the operating system standard on which it is used.

 

End Of File

No End Of File (EOF) terminator is actually used. Rather, the directory entry for the file is updated to point at the last byte in the file and the file is then truncated to that point. However, some of the utilities that accompany the compiler (such as DUMP) simulate an EOF to avoid operator confusion.

 

End Of Record

The End Of Record (EOR) mark is defined by the standard for the operating system in use. Under DOS, it is a Carriage Return and Line Feed (Hex 0D and 0A). Under Linux, it is a Line Feed (Hex 0A). This technique simplifies the functionality of the files with other programs and utilities.

 

 

See Also: Numeric Variables, Disk I/O Instructions

 



PL/B Language Reference Partial I/O RMSRAS Support