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