Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!ml10+ From: ml10+@andrew.cmu.edu (Michael A. Libes) Newsgroups: comp.sys.mac.programmer Subject: vRefNum Message-ID: Date: 2 Nov 89 21:48:56 GMT Organization: Class of '91, Carnegie Mellon, Pittsburgh, PA Lines: 13 I have a question about low-level File routines. My progam is supposed to store a file for later reference. I tried saving the file name and volume reference number. However, when the program is run the second time, the actual volume reference number of the file has changed. (I think the value is dynamic during the run of a program). After reading IM IV, I figured that the Directory ID wouldn't change so I stored that instead of the VRefNum. This creates a new problem. A call to PBHGetCatInfo will convert a fileName/VRefNum to a dirID but not vica versa. How can I get the current VRefNum from a fileName/dirID? -luni