home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!chx400!bernina!czychi
- From: czychi@bernina.ethz.ch (Gary Czychi)
- Subject: How to <<Readln>> from a text referenced by a handle??
- Message-ID: <1992Sep15.074458.6297@bernina.ethz.ch>
- Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
- Date: Tue, 15 Sep 1992 07:44:58 GMT
- Lines: 34
-
- Hi!
-
- I have been told that the Mac (in fact any computer) is very slow reading
- textual input from a file line by line.
-
- nd in my application, I have already read in the text of a file in one big
- chunk and pass the handle to the place where I process the data.
-
- Now, is there any way for me, to read some of the lines in this handle? I
- only need about 10 lines from the top and separate it from the rest, which
- is being diplayed in a window as one big part.
-
- I've tried to type coerce the handle to a str255 handle, but then I get a
- range error (of course).
-
- If there is no obvious or easy solution, how could I access the data in my
- handle byte for byte and then put everything into a Str255 until the next CR
- is detected?
-
- As you might want to know, I'm using TH Pascal.
-
- Thanks a lot for any help.
-
- Gary
-
- Gary T. Czychi University of St.Gallen
-
- czychi@alpha.unisg.ch (preferred host)
- czychi at csghsg52 (=bitnet)
- czychi@bernina.ethz.ch
- Switzerland
- -
-
-
-