Path: utzoo!mnetor!uunet!portal!cup.portal.com!Devin_E_Ben-Hur From: Devin_E_Ben-Hur@cup.portal.com Newsgroups: comp.sys.ibm.pc Subject: Re: Turbo C bug (?) Message-ID: <3359@cup.portal.com> Date: 20 Feb 88 23:46:25 GMT References: <734@agora.UUCP> Organization: The Portal System (TM) Lines: 12 XPortal-User-Id: 1.1001.3645 > In version 1.0 I noticed what seemed to be a bug in the read() function. > The docs claim (and the standard dictates) that this function returns the > actual byte count read in from the file. > Under 1.0 it seemed that this number had no bearing on the actual byte > count. > It would read in all 16, but return some number close to, but not equal to, > 16. > -Jim Seymour ...tektronix!reed!percival!agora!qintar You probably have your file open in text mode, in which case returns and cntrl-Z bytes are ignored in the byte count. Try opening your file in binary mode.