Mail Archives: djgpp/1997/05/05/21:43:35
Ethan Rohrer wrote:
> 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...
Easy. Open the file in binary mode.
--
Erik Max Francis, &tSftDotIotE / email / max AT alcyone DOT com
Alcyone Systems / web / http://www.alcyone.com/max/
San Jose, California, United States / icbm / 37 20 07 N 121 53 38 W
\
"The future / is right there."
/ Bill Moyers
- Raw text -