X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Trace-PostClient-IP: 68.147.177.20 From: Brian Inglis Newsgroups: comp.os.msdos.djgpp Subject: Re: v2.953 Additional Observations Organization: Systematic Software Message-ID: References: X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 21 Date: Sun, 19 Dec 2004 07:40:31 GMT NNTP-Posting-Host: 24.71.223.147 X-Complaints-To: abuse AT shaw DOT ca X-Trace: pd7tw2no 1103442031 24.71.223.147 (Sun, 19 Dec 2004 00:40:31 MST) NNTP-Posting-Date: Sun, 19 Dec 2004 00:40:31 MST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Sat, 18 Dec 2004 12:17:45 -0500 in comp.os.msdos.djgpp, Radical NetSurfer wrote: >Apparently we are seeing that using fread() >and reading a size that exceeds the end_of_file, >causes ZERO elements to be returned; this >does not seem to be what most people are expecting: > >Example 1: > >aFile.bin, Size = 256 bytes > (an arbitrary file, containing random characters, > of a specific size, purely for example) Are you opening the file in binary mode "rb"? -- Thanks. Take care, Brian Inglis Calgary, Alberta, Canada Brian DOT Inglis AT CSi DOT com (Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca) fake address use address above to reply