Long KML text file with no return chars

Terry Judd terry.judd at unimelb.edu.au
Thu Mar 19 01:29:45 EDT 2015


Hi William - you should be able to read a text file of that size into LC
no worries. Have you tried the 'put url (³file:²&tPath) into tVar¹ method
rather than using the Œread file¹ approach. I only ever use the latter if
I have to deal with really big files (10s to 100s of MB or more).

Terry...

On 19/03/2015 4:17 pm, "William Prothero" <prothero at earthednet.org> wrote:

>Folks:
>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.
>
>My overall goal is to convert the KML (a specific xml format) to an
>array, using Trevor Devore¹s convertXMLToArray, for processing, then save
>it back to a friendlier format for normal use.
>
>So, do I just start editing the file into smaller files, or is there
>another strategy that would be more efficient. I¹ll have to recreate
>headers, etc, for each file, but it can¹t be too bad.
>
>Best, 
>Bill
>
>William A. Prothero
>http://es.earthednet.org/
>
>_______________________________________________
>use-livecode mailing list
>use-livecode at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list