home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.hypercard
- Path: sparky!uunet!caen!saimiri.primate.wisc.edu!zazen!news
- From: demerit@vms.macc.wisc.edu (J. DeMerit)
- Subject: Re: Importing/accessing text files
- Message-ID: <1992Nov18.210103.12203@macc.wisc.edu>
- Sender: news@macc.wisc.edu (USENET News System)
- Organization: University of Wisconsin Academic Computing Center
- Date: 18 NOV 92 14:54:54
- Lines: 25
-
- In article <1992Nov18.164034.15856@jhunix.hcf.jhu.edu>, crawford@jhunix.hcf.jhu.edu (James E Crawford) writes...
-
- >I would like to thank everyone for their help in solving this problem. Your
- >assistance has been invaluable....
- >
- >But...
- >
- >1) The read command only lets you import 16k at a time (according to
- >the Complete HyperTalk Handbook).
-
- I have done a lot of reading/importing from text files into HC but never
- needed chunks that large (usually read until comma...)
-
- >2) There is no mechanism to search backward in a file. (ie. you can read
- >until a certain character/word/whatever, but there is no way to tell HC to
- >"read until Mercutio then go back 100 lines and import the next 200"
- >
-
- This is true but you can put those 100 lines into a temp container (and as we
- all know by now no large than 30K) and when you read 'Mercutio' then put the
- contents of the temp container (100 lines) and then read and put the next 200
- lines. So now you've essentially searched backward then forward.
-
- Hope this helps,
- Cathy
-