Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!orion.oac.uci.edu!nntpsrv From: bdugan@teri.bio.uci.edu (Bill Dugan) Newsgroups: comp.sys.mac.programmer Subject: Yikes: Using both resource & data forks of a file Summary: Strange problems! Message-ID: <280B842C.16551@orion.oac.uci.edu> Date: 16 Apr 91 23:09:32 GMT Organization: University of California, Irvine Lines: 17 Nntp-Posting-Host: teri.bio.uci.edu I'm creating a document file with "Create", writing data to the file's data fork, and closing the file. Everything's great. But then I want to put some resources in the file. I am trying "OpenRFPerm" with write permission enabled, and it doesn't work; calling ResError() reveals an EOF, which leads me to believe there's no resource fork, despite IM's claim that Create will set up both forks of the file created. My pathetic theory is that a newly created file, when closed, will not get set up with a resource fork if no data has been written to that fork. But since the resource fork & data fork can (supposedly) be treated separately, I don't see why I should have to nest my open & close calls just to make sure it all gets written out correctly, and I haven't tried this anyway. Can anyone point me in a general direction? Thanks in advance.... bill