Mail Archives: djgpp/1996/12/21/20:16:38
Roland Nilsson wrote:
> Yes, I'm parsing binary files. I believe C FILE i/o is always in raw
> mode. The only fopen() flags available are those relating to i/o
> direction and overwrite, according to my djgpp function list.
> I usually fopen() with "r".
No. Specifying a mode parameter of "r" means read in text mode.
End-of-line character sequences will be transformed into newlines on read,
and vice versa when writing.
Open it with a mode parameter of "rb" for read in _binary_ mode.
--
Erik Max Francis | max AT alcyone DOT com
Alcyone Systems | http://www.alcyone.com/max/
San Jose, California | 37 20 07 N 121 53 38 W
&tSftDotIotE | R^4: the 4th R is respect
"You must surely know if man made heaven | Then man made hell"
- Raw text -