Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!boulder!sunybcs!bingvaxu!leah!itsgw!batcomputer!braner From: braner@batcomputer.tn.cornell.edu (braner) Newsgroups: comp.sys.atari.st Subject: Re: FILE I/O Message-ID: <2862@batcomputer.tn.cornell.edu> Date: Sun, 8-Nov-87 21:36:28 EST Article-I.D.: batcompu.2862 Posted: Sun Nov 8 21:36:28 1987 Date-Received: Wed, 11-Nov-87 03:26:16 EST References: <2023@homxc.UUCP> Reply-To: braner@tcgould.tn.cornell.edu (braner) Organization: Cornell Theory Center, Cornell University, Ithaca NY Lines: 12 Keywords: C, Fseek, fseek [] The GEMDOS Fread(), etc are more similar to the UNIX read(), etc, NOT fread(), etc. The raw GEMDOS functions are faster (due to no buffering) but you should set up your own buffering. (I found out that a 9Kbyte buffer is good enough for almost-maximum floppy-disk performance.) If you want to write code so that it is easy to port to UNIX and such, write read(), etc calls in the UNIX syntax, and set up a bunch of routines with those names that simply translate to the GEMDOS calls. (BEWARE of int-vs-long problems!) - Moshe Bran.]6