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.

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for Desktop, Mobile, and Web
 ____________________________________________________________
 ambassa...@fourthworld.com        http://www.FourthWorld.com

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to