Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!ads.com!potomac.ads.com!jtn From: jtn@potomac.ads.com (John T. Nelson) Newsgroups: comp.sys.mac.programmer Subject: Oh THIS is interesting (opening resources) Message-ID: <1991Mar11.233539.21549@potomac.ads.com> Date: 11 Mar 91 23:35:39 GMT Organization: Advanced Decision Systems, Arlington, VA Lines: 33 Oh THIS is interesting. There's a function to opn resources (RFopen()) but there's no function to actually close the resource file! At least none that I can find offhand. Am I expected to use FSclose? If I do that won't that also close the data fork which I MIGHT want open? See, I'd like to open both forks independently and close them independently. The program I'm working on compares the contents of resource forks byte by byte. Interestingly enough, files that are EXECT duplicates of each other (call them fileA and fileB) have differing resource contents, at least according to this program that I've written. Will resource forks ALWAYS be different between files even when I've used COMMAND-D to duplicate them from the finder? Their data forks are identical, that's no problem. But their resource forks are always different. Wierd. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ORGANIZATION: Advanced Decision Systems GEOGRAPHIC: Arlington, VA UUCP: kzin!speaker@mimsy.umd.edu INTERNET: jtn@potomac.ads.com SPOKEN: Dark Hacker PHONE: (703) 243-1611 The Mythos of Dark Hacker: "Controlled by the sinister and shadowy "suits" Dark Hacker now employs the tools of computer science to free himself from the suit's will. By day he is a lackey... but at night when the city sleeps he becomes.... DARK HACKER!" =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=