home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15489 < prev    next >
Encoding:
Text File  |  1992-09-14  |  1.4 KB  |  44 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!chx400!bernina!czychi
  3. From: czychi@bernina.ethz.ch (Gary Czychi)
  4. Subject: How to <<Readln>> from a text referenced by a handle?? 
  5. Message-ID: <1992Sep15.074458.6297@bernina.ethz.ch>
  6. Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
  7. Date: Tue, 15 Sep 1992 07:44:58 GMT
  8. Lines: 34
  9.  
  10. Hi!
  11.  
  12. I have been told that the Mac (in fact any computer) is very slow reading
  13. textual input from a file line by line.
  14.  
  15. nd in my application, I have already read in the text of a file in one big
  16. chunk and pass the handle to the place where I process the data.
  17.  
  18. Now, is there any way for me, to read some of the lines in this handle? I
  19. only need about 10 lines from the top and separate it from the rest, which
  20. is being diplayed in a window as one big part.
  21.  
  22. I've tried to type coerce the handle to a str255 handle, but then I get a
  23. range error (of course).
  24.  
  25. If there is no obvious or easy solution, how could I access the data in my
  26. handle byte for byte and then put everything into a Str255 until the next CR
  27. is detected?
  28.  
  29. As you might want to know, I'm using TH Pascal.
  30.  
  31. Thanks a lot for any help.
  32.  
  33.   Gary
  34.  
  35.     Gary T. Czychi          University of St.Gallen
  36.  
  37.        czychi@alpha.unisg.ch (preferred host)
  38.          czychi at csghsg52   (=bitnet)
  39.            czychi@bernina.ethz.ch
  40.              Switzerland
  41.               -
  42.  
  43.  
  44.