From: wilmer AT server DOT minilinux DOT org (Wilmer van der Gaast) Newsgroups: comp.os.msdos.djgpp Subject: Re: Binary Files Date: 15 Jan 2000 17:03:56 GMT Organization: WorldOnline - The Internet Communication Company Lines: 13 Message-ID: References: <38808ACC DOT 6C76D41C AT wt DOT net> NNTP-Posting-Host: vp177-224.worldonline.nl X-Trace: news.worldonline.nl 947969657 17937 195.241.177.224 (15 Jan 2000 20:54:17 GMT) X-Complaints-To: newsmaster AT worldonline DOT nl NNTP-Posting-Date: 15 Jan 2000 20:54:17 GMT User-Agent: slrn/0.9.5.4 (UNIX) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Sat, 15 Jan 2000 08:57:16 -0600, Aaron Chernosky wrote: > 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? You need to fopen the file with the "rb" mode, and not "r". It must work that way. If you forget the b, it'll stop at the first end of file. -- Wilmer van der Gaast (lintux AT dds DOT nl) ICQ 55707076 Hi, I'm a signature virus. plz set me as your signature and help me spread :)