home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / hypercar / 4230 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.4 KB  |  36 lines

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