home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!ubc-cs!unixg.ubc.ca!kakwa.ucs.ualberta.ca!acs.ucalgary.ca!cpsc.ucalgary.ca!valerio
- From: valerio@cpsc.ucalgary.ca (Valerio Franceschin)
- Subject: problem in converting SFGetFile() to StandardGetFile()
- Message-ID: <BuAH8J.4qI@cpsc.ucalgary.ca>
- Sender: news@cpsc.ucalgary.ca (News Manager)
- Organization: University of Calgary Computer Science
- Distribution: na
- Date: Wed, 9 Sep 1992 02:21:54 GMT
- Lines: 20
-
-
- I'm trying to replace SFGetFile() with the new system 7 StandardGetFile().
- SFGetFile produces the file name in the 'fname' field of an SFReply record.
- I use this field (after converting to C format) in an fopen(), and everything
- is fine. StandardGetFile() produces the file name in the 'name' field of a
- record (sfFile) within a StandardFileReply record. I use this name (after converting
- to C and checking that it's correct) in an fopen(), and this fails.
-
- Why is this not working? Is there something else I should be doing?
-
- I know that I can use FSpOpenDF() to get a reference number to the file, and
- then read that file with FSRead(). But I want to open the file with fopen() so
- I can get a file pointer (FILE *) to use in the numerous fscanf() statements that
- already appear in the program.
-
- Any replies to this problem would be much appreciated. Please e-mail me directly.
-
- Thanks again.
-
- V
-