Article View: comp.sys.mac
Article #16719obtaining the full pathname of a file
From: steig
Date: Wed, 10 Jun 1987 23:27
Date: Wed, 10 Jun 1987 23:27
13 lines
1358 bytes
1358 bytes
I am writing a program in Lightspeed C that asks the user for a filename using the standard file package and then processes the text in that file using some of the stdio C routines. I use fopen() to open the file. fopen() requires the pathname of the file, but SFGetFile and SFPutFile only return the filename and the working directory reference number. How do I obtain the pathname of the file? -- |Mark J. Steiglitz |Bitnet: steig@crnlthry, araj@crnlvax5 | |USnail: 66 Steiglitz Road |Arpanet: steig@tcgould.tn.cornell.edu | | Liberty, NY 12754 | araj@vax5.ccs.cornell.edu | | |Usenet: steig@batcomputer.tn.cornell.edu.uucp |
Technical Details
Message-ID:
<1345@batcomputer.tn.cornell.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!ames!ucbcad!ucbvax!hplabs!pyramid!batcomputer!steigShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!ames!ucbcad!ucbvax!hplabs!pyramid!batcomputer!steig From: steig@batcomputer.UUCP Newsgroups: comp.sys.mac Subject: obtaining the full pathname of a file Message-ID: <1345@batcomputer.tn.cornell.edu> Date: Wed, 10-Jun-87 19:27:13 EDT Article-I.D.: batcompu.1345 Posted: Wed Jun 10 19:27:13 1987 Date-Received: Sat, 13-Jun-87 08:23:47 EDT Reply-To: steig@tcgould.tn.cornell.edu.UUCP (Mark J. Steiglitz) Organization: Cornell Theory Center, Cornell University, Ithaca NY Lines: 13 Summary: How do you do it?