Date: Sun, 16 Jan 2000 10:31:44 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Aaron Chernosky cc: djgpp AT delorie DOT com Subject: Re: Binary Files In-Reply-To: <3880A8CD.97FD4201@wt.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sat, 15 Jan 2000, Aaron Chernosky wrote: > Should I just use fread like so: > > fread(ch,1,1,fin); // if ch is a single char var? It doesn't matter, you still need to open the stream in binary mode. For reading a single character, getc is faster, because it's an inline function that expands to a few simple operations. In contrast, fread will incur an overhead of a function call.