Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!mips!apple!stadler From: stadler@Apple.COM (Andy Stadler) Newsgroups: comp.sys.mac.hypercard Subject: Re: Appending to File From HyperCard Message-ID: <40852@apple.Apple.COM> Date: 10 May 90 01:34:15 GMT References: <51561.2643C2C1@cmhgate.FIDONET.ORG> <40773@apple.Apple.COM> Organization: Apple Computer Inc, Cupertino, CA Lines: 21 In article <40773@apple.Apple.COM> jdevoto@Apple.COM (Jeanne A. E. DeVoto) writes: > >The following will append to the file "foo": > > open file "foo" > read from file "foo" until empty -- reads to end of file > write myStuff to file "foo" > close file "foo" > Possible problem here: HyperTalk's file read and write code has a (memory here, don't quote my numbers) 16k file buffer size. If you are attempting to skip over existing text, this MAY not work when the file has more than 16k in it. In other words, "read from xx until yy" really means "read from xx until yy OR 16k of text read in". This factoid presented to you from memory. Please test before believing me. --Andy stadler@apple.com