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