From Chris Johnson · 1996-04-04 09:36 · #75250 in R25C
In reply to EOF by Alistair Green
AG> byte at a time. This is fine until I reach a section of the code in
AG> the file
AG> that is recognised as the EOF, even though it is not the end of the
I think we have all been torpedoed by that one at some time or other. You ìshould explicitly open the file as binary ("rb" if you are using stream ìi/o). This has the side effect that DOS CRLF will appear as 2 characters ìrather than just '\n' so you may need to take account of that.
Regards
Chris
---
* Origin: EDIMatrix BBS (+44-181-501-3096/7) (2:254/87)