delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/15/14:57:54

From: Damian Yerrick <MYNAMEISd_yerrick AT hotmail DOT comNO2CANNEDHAM>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Binary Files
Organization: Pin Eight Software <http://pineight.8m.com/>
Message-ID: <m2i18scik4vrtjp7trurrtt2q4lrpl5g3i@4ax.com>
References: <38808ACC DOT 6C76D41C AT wt DOT net>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 14
X-Trace: /w5MH+qJ31Y1gLosTEVgLQJX9EWzxS967bZS5jDlpGhgcI8cJCMEzoHaTnixHHMGSpfrSfpJoBFR!sVIJjO9l9jTPYPfJHNrbS6GThoFjQrxEStJQSAyZaPWxjydc7BGZA8xuWXaZwKrcbTNNTvsUXg==
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Sat, 15 Jan 2000 19:23:11 GMT
Distribution: world
Date: Sat, 15 Jan 2000 19:23:11 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Aaron Chernosky <chernobl AT wt DOT net> wrote in message
<38808ACC DOT 6C76D41C AT wt DOT net>...
>Does the function getc(FILE *f) work with binary files, mainly in that
>it doesn't screw up the data when u read it in?

If you open the file in binary ("rb") mode, the system works with raw
bytes instead of characters. getc() should work in that case.

-- 
Damian Yerrick  http://yerricde.tripod.com/
View full sig at http://www.rose-hulman.edu/~yerricde/sig.html
Comment on story ideas at http://home1.gte.net/frodo/quickjot.html

And yes, I have set my attribute line to emulate Outhouse Express.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019