On 08/25/2018 03:25 AM, Keith Clarke via use-livecode wrote:
Folks,
I’m working on a simple utility to count the most popular words in a text file but 
my current code runs for a while & then causes LiveCode to crash.

I would also do what Alex does there with an array. Your code doesn't crash here for me on linux, but I want to point out that this line won't do what you want anyway

          if tWord is among the lines of tWords then

because the lines of tWords are of the form word,count rather than word.

--
 Mark Wieder
 ahsoftw...@gmail.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