home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 13270 < prev    next >
Encoding:
Text File  |  1992-07-31  |  1.3 KB  |  36 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!decwrl!zazen!doug.cae.wisc.edu!umn.edu!news
  3. From: Steve Kohlmeyer
  4. Subject: Re: File Mgr. vs. std. libs. for text files (new programmer)
  5. Message-ID: <1992Jul31.175108.11537@news2.cis.umn.edu>
  6. Sender: news@news2.cis.umn.edu (Usenet News Administration)
  7. Nntp-Posting-Host: santa-30.psych.umn.edu
  8. Organization: University of Minnesota
  9. References: <84932@netnews.upenn.edu>
  10. Date: Fri, 31 Jul 1992 17:51:08 GMT
  11. Lines: 23
  12.  
  13. In article <84932@netnews.upenn.edu> peter@sysnext.library.upenn.edu (Peter C.
  14. Gorman) writes:
  15. >Hello -
  16. >
  17. >I've got a couple of projects which involve fairly simple manipulation of  
  18. >text files using line-at-a-time access.  The standard library functions  
  19. >are fine for this aspect of it, but I'd like to use the Toolbox for file  
  20. >selection and opening.  Think C seems to tell me that I can't use the SF  
  21. >Package and File Manager to get the files, then use fgets(), fputs(), etc.  
  22. >for manipulation of the contents. .....
  23.  
  24. I use both the SF package and standard C i/o functions together all the time.
  25. The SF package will return the volRefnum (or directory) of the opened/saved
  26. file.
  27. Use this to set your default dir.  Then use your C functions in the normal
  28. manner.
  29.  
  30. Steve Kohlmeyer
  31. U of Minnesota
  32.  
  33.  
  34.  
  35.  
  36.