home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 13255 < prev    next >
Encoding:
Internet Message Format  |  1992-07-31  |  1.4 KB

  1. Path: sparky!uunet!sun-barr!cs.utexas.edu!swrinde!mips!darwin.sura.net!jvnc.net!netnews.upenn.edu!sysnext.library.upenn.edu
  2. From: peter@sysnext.library.upenn.edu (Peter C. Gorman)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: File Mgr. vs. std. libs. for text files (new programmer)
  5. Message-ID: <84932@netnews.upenn.edu>
  6. Date: 31 Jul 92 14:09:47 GMT
  7. Sender: news@netnews.upenn.edu
  8. Lines: 21
  9. Nntp-Posting-Host: sysnext.library.upenn.edu
  10.  
  11. Hello -
  12.  
  13. I've got a couple of projects which involve fairly simple manipulation of  
  14. text files using line-at-a-time access.  The standard library functions  
  15. are fine for this aspect of it, but I'd like to use the Toolbox for file  
  16. selection and opening.  Think C seems to tell me that I can't use the SF  
  17. Package and File Manager to get the files, then use fgets(), fputs(), etc.  
  18. for manipulation of the contents.  What's the MacWay to do this with the  
  19. SFP and File Manager?  Do I read in the whole file to a buffer, then parse  
  20. the contents? The files contain simple strings used for parameter settings  
  21. and the like.  I want to combine the simplicity of std. library functions  
  22. with the humanity of the Mac interface.
  23.  
  24. As the subject line says, I'm new to both C and Mac programming, but so  
  25. far I like both fine.  Thanks for your help.
  26.  
  27. --
  28. Peter Gorman
  29. University of Pennsylvania
  30. Library Systems Office
  31. peter@sysnext.library.upenn.edu
  32.