Date: Sat, 21 Dec 1996 11:51:08 -0500 Message-Id: <199612211651.LAA23865@delorie.com> From: DJ Delorie To: roland DOT nilsson AT communique DOT se CC: djgpp AT delorie DOT com In-reply-to: <59ggmj$3l@news.luth.se> (roland.nilsson@communique.se) Subject: Re: C-style FILE IO problems.. > 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". You believe wrong. ANSI states that file I/O is always in *text* mode. Use "rb" or "wb" to indicate binary (raw) I/O.