Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!ncar!tank!gft_robert@gsbacd.uchicago.edu From: gft_robert@gsbacd.uchicago.edu Newsgroups: comp.sys.mac.programmer Subject: How to set EOF of "resource" file to 0? Message-ID: <9084@tank.uchicago.edu> Date: 2 May 90 19:04:48 GMT Sender: news@tank.uchicago.edu Organization: University of Chicago Graduate School of Business Lines: 17 I have an app with two kinds of files: "data" files, manipulated with FS file calls, and "resource" files, which contain only a resource fork and are thus manipulated using Resource Manager calls. 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? Robert ============================================================================ = gft_robert@gsbacd.uchicago.edu * generic disclaimer: * "It's more fun to = = * all my opinions are * compute" = = * mine * -Kraftwerk = ============================================================================