Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!rex!ukma!asuvax!stjhmc!p88.f15.n300.z1.fidonet.org!Lawson.English From: Lawson.English@p88.f15.n300.z1.fidonet.org (Lawson English) Newsgroups: comp.sys.mac.programmer Subject: Re: writing a text file Message-ID: <9561.2820DE75@stjhmc.fidonet.org> Date: 1 May 91 16:30:07 GMT Sender: ufgate@stjhmc.fidonet.org (newsout1.26) Organization: FidoNet node 1:300/15.88 - Tucson Apple Core, Tucson AZ Lines: 16 Matt Mora writes in a message to All MM> count:=MyTERec^^.teLength; {set the length of the data} error:=FSWrite(refNum,- MM> count, ptr(MyTERec^^.hText^)); MM> That should write what was in MyTErec in to the file. As I recall, you might get bit if you have set myTErec^^.hText without calling TECalText first as teLength gets set according to GetHandleSize(myTErec^^.hText). Lawson -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!300!15.88!Lawson.English Internet: Lawson.English@p88.f15.n300.z1.fidonet.org