turns out when i try to parse the lines 1 by 1 (after just loading the
file) in 9.05 there is no crash and the process finishes...albeit slowly.
will report bug for 9.04.
thanks for all the suggestions, learned alot by asking you guys and
investigating workaround.
On Sat, Aug 10, 2019 at 3:0
1. Read for N lines reads sequentially, doesn't need an offset.
2. You could instead try to do that in one strike:
put url ("file:"&) into str
filter str with "*"
typical line for further extracting:
U+1F600
___
use-livecode mailing list
use-live
thank you both. the offset is what i was looking for, this way I can
read just a few lines at a time
I also must read them in sequence so I do have to use the line counter
sequentially.
There are probably many reasons why it hands the way i was doing it.
Thankfully I only have to do this one
Oh, and that repeat will take a very long time. Fixing that might be better
than the other solution.
Use repeat for each line this_line of unicode_file_to_parse
and don't forget to clear unicode_file_to_parse after the repeat if it is not
handler local
> On Aug 10, 2019, at 11:26 AM, Tom Glod
Did you already try (use a counter
add 42 to lineCntr
read from file for 42 lines --> placed into it
(check the result for empty or "eof")
Note. The file contains base64 encoded imagedata (which is in one long line).
Such a line may be too long to display in a LC field (-> may cause a hang).
So
Sorry about that. The https reference threw me off.
Use open file, read file with range (repeatedly), and then close file.
open file myBigFile for UTF-8 text read
read from file myBigFile at myOffset for myNumLines lines
close...
Adjust myOffset with the length of
Hi Dar, thanks for the tips. However I am loading the file locally.
The file is 48mb, so it loads fine and fits fine.
I am attempting to parse just 1 line at a time, but it still doesn't work.
This is my code and even this freezes it.
---
Remember to unload after load and parsing (if you use load).
Also, look for variables you are leaving full of big things.
If that doesn't help enough, look at the httpHeaders property. Use the Range
request header. Unfortunately, that might be limited to byte as a unit. If so,
you might also wa
I am trying to parse this massive html page of unicode characters.
https://unicode.org/emoji/charts/full-emoji-list.html
and livecode is choking up when I read in the whole file and try to parse
each line using a loop. I get a hard crash in the debugger and a endless
loop when debugger is off.