home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14156 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  1.3 KB

  1. 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
  2. From: isbell@ai.mit.edu (Charles L Isbell)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Newline mode
  5. Message-ID: <ISBELL.92Aug18131432@pop-tarts.ai.mit.edu>
  6. Date: 18 Aug 92 17:14:32 GMT
  7. Sender: news@ai.mit.edu
  8. Organization: MIT Artificial Intelligence Laboratory
  9. Lines: 19
  10.  
  11.  
  12. Here's an easy one.  Think C.  Mac file manager interface (ie FSRead()
  13. as opposed to fgets(), etc).  I want to read in a line (defined as a
  14. string of characters terminated by a newline) at a time.  Inside Mac
  15. say there's a newline mode that will do this for you automatically,
  16. but doesn't explain how to do it.  Currently I read in a character at
  17. a time until I hit a newline, but I'm sure that's just toooooo slow.
  18.  
  19. So, how do I do this nwline thing (ie implement a fast fgets())?
  20. --
  21. Peace.
  22.                     "There is nothing more dangerous 
  23.                      than a man who has nothing to lose."
  24.                                     -Malcolm X
  25.                                    -\--/-
  26.     Don't just adopt opinions     |  \/  |       Some of you are homeboys
  27.           develop them.           |  /\  | but only I am The Homeboy From hell
  28.                                    -/--\-
  29.  
  30.