Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!osu-cis!osupyr!artsvax!mike From: mike@artsvax.UUCP Newsgroups: comp.sys.mac Subject: LSC fread limitation? Message-ID: <214@artsvax.UUCP> Date: Tue, 1-Dec-87 22:23:21 EST Article-I.D.: artsvax.214 Posted: Tue Dec 1 22:23:21 1987 Date-Received: Sat, 5-Dec-87 06:53:02 EST Organization: College of the Arts Computer Lab, OSU Lines: 30 Keywords: LSC fread This is a continuation of my problem with reading entire files into memory. The following command: unsigned char buffer[300*512]; FILE *fp; fread(buffer,sizeof(char),300*512,fp); ... always reads in only 44 blocks, even though the file in question contains no resources, and is over 300k in size. The fread should read until the end of file, set the EOF flag, and then return the number of bytes read. It always returns the number 44*512... Does anyone have any idea why? Any help would be appreciated.. --mike ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Michael S. Czeiszperger | Disclaimer: "Sorry, I'm all out of pith" Systems Programmer I | Smail: Room 406 Baker (614) College of the Arts | 1971 Neil Avenue 292- Computer Lab | Columbus, OH 43210 0895 The Ohio State University | UUCP: {decvax,ucbvax}!cbosgd!osupyr!artsvax!mike ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~