From Alan Clifford · 1996-04-05 02:28 · #75192 in R25C
In reply to EOF by Alistair Green
Hello Alistair
Replying to a message of Alistair Green to All:
AG> Hi All
AG> I have recently been writing a program that involves reading ascii
AG> files one byte at a time. This is fine until I reach a section of
AG> the code in the file that is recognised as the EOF, even though it
AG> is not the end of the file. The program then doesn't see any more of
AG> the file. I was wondering if anyone knows of a way to get round this
AG> problem. Any help would be much appreciated.
Use binary mode rather than text mode - that is, assuming your unamed system has these two modes.
Alan
--- FleetStreet 1.14 NR
* Origin: Alan's Point on Donor/2 (alanc@donor2.demon.co.uk) (2:440/4.6)