Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!jdevoto From: jdevoto@Apple.COM (Jeanne A. E. DeVoto) Newsgroups: comp.sys.mac.hypercard Subject: Re: Appending to File From HyperCard Message-ID: <40773@apple.Apple.COM> Date: 7 May 90 04:49:45 GMT References: <51561.2643C2C1@cmhgate.FIDONET.ORG> Organization: Apple Computer Inc, Cupertino, CA Lines: 22 In article <51561.2643C2C1@cmhgate.FIDONET.ORG> Douglas.Welch@p7.f823.n102.z1.FIDONET.ORG (Douglas Welch) writes: >Does anyone know how to append to a file from HyperCard. I have >a networked log file I need to write to. 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" HyperCard's pointer into the file, used for reading and writing, is always set to the last byte (character) read. It is set initially to 0 when the file is opened. -- ========= jeanne a. e. devoto ======================================== jdevoto@apple.com | You may not distribute this article under a jdevoto@well.sf.ca.us | compilation copyright without my permission. ______________________________________________________________________ Apple Computer and I are not authorized | CI$: 72411,165 to speak for each other. | AppleLink: SQA.TEST