bobc@killer.DALLAS.TX.US (Bob Calbridge) (02/11/89)
This might not be the proper forum in which to post this but since there are probably more subscribers to this group than in the C group that would have used PC specific implementations I'll ask it here. I have written a fairly simple program in Turbo C that uses the first graphics picture in a Printmaster file. When I perform the read function on the file to read in the first 577 bytes it frequently but not always produces an error saying that the file is too small. The problem is that if I ignore the error, I find that the entire graphic is loaded into my buffer. I can work around this type of bug but what I need to know is why I get the error in the first place. This might become critical in later programs when I'm trying to detect the end of a file and get an erroneous answer. Any takers? Thanks in advance. Bob