delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/15/12:27:47

Message-ID: <3880A8CD.97FD4201@wt.net>
Date: Sat, 15 Jan 2000 11:05:17 -0600
From: Aaron Chernosky <chernobl AT wt DOT net>
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en,pdf
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Binary Files
References: <38808ACC DOT 6C76D41C AT wt DOT net>
NNTP-Posting-Host: 216-119-163-247.ipset45.wt.net
X-Trace: 15 Jan 2000 11:03:59 -0600, 216-119-163-247.ipset45.wt.net
Organization: World Trade Network, Inc. (WT.net)
Lines: 10
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Should I just use fread like so: 
  
  fread(ch,1,1,fin); // if ch is a single char var?

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?
> 
> Aaron C

- Raw text -


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