Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!helios.ee.lbl.gov!ux1.lbl.gov!beard From: beard@ux1.lbl.gov (Patrick C Beard) Newsgroups: comp.sys.mac.programmer Subject: Re: How to set EOF of "resource" file to 0? Message-ID: <5544@helios.ee.lbl.gov> Date: 3 May 90 17:26:50 GMT References: <9084@tank.uchicago.edu> Sender: usenet@helios.ee.lbl.gov Reply-To: beard@ux1.lbl.gov (Patrick C Beard) Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 15 X-Local-Date: 3 May 90 10:26:50 PDT In article <9084@tank.uchicago.edu> gft_robert@gsbacd.uchicago.edu writes: #When a user wants to overwrite a "data" file (that is, in SFPutFile they've #indicated that they wish to make a new file with same name as an old one), I #just open it and then SetEOF to 0. But how do I do it for the "resource" #files? Do I use OpenRF and then call SetEOF to set the EOF to 0, or do I #actually have to use the Resource Manager to delete every resource? You said it, use OpenRF, and SetEOF of that to 0. That has always worked for me. If you don't the Resource fork will still contain the old resource map I believe. ------------------------------------------------------------------------------- - Patrick Beard, Macintosh Programmer (beard@lbl.gov) - - Berkeley Systems, Inc. "..............Good day!" - Paul Harvey - -------------------------------------------------------------------------------