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

  1. Newsgroups: comp.sys.mac.hypercard
  2. Path: sparky!uunet!think.com!spool.mu.edu!umn.edu!csus.edu!netcom.com!cinnibar
  3. From: cinnibar@netcom.com (Jeff Wood)
  4. Subject: Re: Importing/accessing text files
  5. Message-ID: <1992Nov16.203444.28004@netcom.com>
  6. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  7. References: <1992Nov16.155906.8559@jhunix.hcf.jhu.edu>
  8. Date: Mon, 16 Nov 1992 20:34:44 GMT
  9. Lines: 25
  10.  
  11. In article <1992Nov16.155906.8559@jhunix.hcf.jhu.edu> crawford@jhunix.hcf.jhu.edu (James E Crawford) writes:
  12. >I am looking for a way to have HyperCard access text files between 100k and
  13. >300k in size. As I understand it, there is a 30k limit to the amount of text
  14. >which can be put into a field. Is there any way around this? or is there any
  15. >way to have HyperCard open the text file?
  16. >
  17.  
  18. The 30K limit is not on the size of the file you can open, but rather on the
  19. amount of data  you may have in any one given container.  The normal best bet
  20. for these large text files is cumbersome but read it in line-by-line..
  21. processing as you go.  If you really feel strange, start creating fields like
  22. array elements. :)  "Text 1" "Text 2" "Text 3"...etc.  You'll have to do some
  23. fancy footwork, and you'll pretty much never be able to display it in a single
  24. field...but it does get the info into the stack.
  25.  
  26. Are you sure you need the info in the stack, by the way?  You could just scan
  27. through the file for the information you seek, which is probably much less than
  28. 30K, and only read in that much of the text file.  If you have records,
  29. I'm sure someone out there has an xfcn set for processing of database records.
  30. Anyone?     Anyone?
  31.  
  32. Anyone else have other suggestions?  I'm curious if there *is* a better way.
  33.  
  34. Jeff Wood
  35. cinnibar@netcom.com
  36.