Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!ccu.umanitoba.ca!ciit85.ciit.nrc.ca!vivanco From: vivanco@ciit85.ciit.nrc.ca Newsgroups: comp.lang.c Subject: Microsoft C: Reading binary files. Message-ID: <1991Jun20.163342.743@ciit85.ciit.nrc.ca> Date: 20 Jun 91 10:33:42 GMT Organization: National Research Council Lines: 18 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