Microsoft C: Reading binary files.

vivanco at ciit85.ciit.nrc.ca vivanco at ciit85.ciit.nrc.ca
Thu Jun 20 20:33:42 AEST 1991


I'm posting this for a friend, please email him directly at

mtfirst.eeserv.ee.umanitoba.ca

problem:

   He is using Microsoft C 6.0 and is having trouble reading binary files.

He writes the binary value of a floating point number using fwrite() to a
file. When he tries to read the binary data back it stops because of an
EOF marker (1A). He looked at the file and there are 1A's throughout the
file, the 1A being part of the data. He wants to know how he can read in
the data without determining the physical end of file himself and 
ignoring the EOF fread() reads. Hope this explains the problem.

Thanks in advance,

Rodrigo



More information about the Comp.lang.c mailing list