Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!nic.MR.NET!srcsip!gorby!mnkonar From: mnkonar@gorby.SRC.Honeywell.COM (Murat N. Konar) Newsgroups: comp.sys.mac.programmer Subject: cdev/INIT question Message-ID: <17812@srcsip.UUCP> Date: 27 Feb 89 21:46:03 GMT Sender: news@src.honeywell.COM Reply-To: mnkonar@srcsip.UUCP (Murat N. Konar) Organization: Honeywell Systems & Research Center, MPLS, MN Lines: 20 I am writing an INIT/cdev combo where the cdev and an INIT installed patch need access to the INIT file to read resources. Short of hardcoding the file name, how can I get the name of my INIT file from during INIT time for use later? Getting the file number is easy, but how do I use that number to re-open the file from inside a patch or cdev? I can't find any file opening routines that take this number as an argument, nor can I find any routines that take this number as an argument and return the name of the file. I know this must be possible since a number of cdevs seem to do this. Thanks in advance, _____________________________________________________________________ Have a day. :^| Murat N. Konar Honeywell Systems & Research Center, Camden, MN mnkonar@SRC.honeywell.com (internet) {umn-cs,ems,bthpyd}!srcsip!mnkonar (UUCP)