home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!mips!darwin.sura.net!jvnc.net!yale.edu!yale!mintaka.lcs.mit.edu!ai-lab!life!isbell
- From: isbell@ai.mit.edu (Charles L Isbell)
- Newsgroups: comp.sys.mac.programmer
- Subject: Newline mode
- Message-ID: <ISBELL.92Aug18131432@pop-tarts.ai.mit.edu>
- Date: 18 Aug 92 17:14:32 GMT
- Sender: news@ai.mit.edu
- Organization: MIT Artificial Intelligence Laboratory
- Lines: 19
-
-
- Here's an easy one. Think C. Mac file manager interface (ie FSRead()
- as opposed to fgets(), etc). I want to read in a line (defined as a
- string of characters terminated by a newline) at a time. Inside Mac
- say there's a newline mode that will do this for you automatically,
- but doesn't explain how to do it. Currently I read in a character at
- a time until I hit a newline, but I'm sure that's just toooooo slow.
-
- So, how do I do this nwline thing (ie implement a fast fgets())?
- --
- Peace.
- "There is nothing more dangerous
- than a man who has nothing to lose."
- -Malcolm X
- -\--/-
- Don't just adopt opinions | \/ | Some of you are homeboys
- develop them. | /\ | but only I am The Homeboy From hell
- -/--\-
-
-