This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: fread()
- To: gnu-win32 at cygnus dot com
- Subject: Re: fread()
- From: cgf at bbc dot com (Chris Faylor)
- Date: Mon, 1 Dec 1997 02:08:20 GMT
- Organization: Boston Business Computing, Ltd.
- References: <19971129184129.17343.qmail@hotmail.com>
- Reply-To: cgf at bbc dot com
In article <19971129184129.17343.qmail@hotmail.com>,
Bhaskar Bhattacharya <bbhattac@hotmail.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@bbc.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@cygnus.com" with one line of text: "help".