delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/11/30/23:07:07

From: cgf AT bbc DOT com (Chris Faylor)
Subject: Re: fread()
30 Nov 1997 23:07:07 -0800 :
Message-ID: <EKHn9w.Cq9.cygnus.gnu-win32@bbc.com>
References: <19971129184129 DOT 17343 DOT qmail AT hotmail DOT com>
Reply-To: cgf AT bbc DOT com
To: gnu-win32 AT cygnus DOT com

In article <19971129184129 DOT 17343 DOT qmail AT hotmail DOT com>,
Bhaskar Bhattacharya <bbhattac AT hotmail DOT com> wrote:
>Does any body know if fread() always works correctly in the cygnus
>port ? I am having some problem where an early EOF is being detected
>and I am not able to read all elements from a file of float. I can
>read the same file from another program without any problem where I
>use fseek() every time to position the file pointer. I have not tried 
>to recreate the problem in a smaller code yet.
>
>Thanks for any information.

It sounds like you're not opening the file as binary, i.e.:

	fopen("thefile", "rb");
-- 
http://www.bbc.com/	cgf AT bbc DOT com			"Strange how unreal
VMS=>UNIX Solutions	Boston Business Computing	 the real can be."
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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