Long KML text file with no return chars
ambassador at fourthworld.com
Thu Mar 19 01:44:25 EDT 2015
William Prothero wrote:
> Just wondering. I am reading in a very long text file (2.6Mb and
> 2.6 million chars) and it has no carriage returns. The “read
> file until end” statement hangs and goes into the spinning pizza
> of death on Mac OS Yosemite and LC 7,0,4 and 7.0.3. I used
> textWrangler to insert hard line breaks, which seemed to work
> fine, but when I then added a “replace cr with empty in theData”,
> it hung the system.
> I suspect the long text file overwrote something and then the replace
> function hung it up.
> So, am I trying to do something out of the range of what Livecode can
> do? I’m wondering whether I should start editing the file into
> smaller files.
The file size isn't the issue; I work on files a hundred times that size
all the time.
Are you doing everything in a variable, or trying to display the
contents in a field?
With that much data there's not much to see anyway. If you can work
with it in RAM you should find LC is more than up to the task.
If you're not using a field please post the stack and the data file if
you can so we can poke around and figure out what needs to be done.
Fourth World Systems
Software Design and Development for Desktop, Mobile, and Web
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the Use-livecode