Mail Archives: djgpp/1997/05/03/05:33:24
Hello all,
I am trying to port some code from my UNIX account to my DOS machine.
My program reads a binary file using a open()/read()/close() sequence.
It worked like a champ in my UNIX account.
Now, under DJGPP, I find that read() stops reading when it encounters
the EOF character (0x1A), which just happens to occur every here and
there in my binary files...
So I've got three questions:
(1) why doesn't this work under DJGPP?
(2) why does this work under UNIX?
and most importantly...
(3) how do I make it do what I want?
(read the entire file, regardless of those 0x1A characters)
I'd appreciate any pointers (except NULL),
thanks
Ethan
rer AT wlv DOT iipo DOT gtegsc DOT com
- Raw text -