home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!mcsun!sunic!kth.se!hemul.nada.kth.se!d88-jwa
- From: d88-jwa@hemul.nada.kth.se (Jon WΣtte)
- Subject: Re: FSOpen or HOpen ?
- Message-ID: <1992Dec29.234409.4513@kth.se>
- Sender: usenet@kth.se (Usenet)
- Nntp-Posting-Host: hemul.nada.kth.se
- Organization: Royal Institute of Technology, Stockholm, Sweden
- References: <85918@ut-emx.uucp>
- Date: Tue, 29 Dec 1992 23:44:09 GMT
- Lines: 21
-
- In <85918@ut-emx.uucp> tequila@ccwf.cc.utexas.edu (Mario Garcia) writes:
-
- >What is the preferred way to open a file? I have always used
- >FSOpen but I have seen code which calls HOpen. What are the
- >advantages/disadvantages of each method ?
-
- FSOpen only takes a wdRefNum, that's uncool.
-
- Instead, as soon as you get a wdRefNum (say from standard
- file) convert it to a vRefNum / dirID pair, and use HOpen
- to open the file. See other post by me in this group.
-
- Cheers,
-
- / h+
-
-
- --
- -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
-
- -- I don't fear death, it's dying that scares me.
-