how to compare 2 very large textfiles

Jim Ault jimaultwins at
Thu Oct 6 19:02:21 EDT 2011

On Oct 6, 2011, at 5:50 PM, Matthias Rebbe wrote:

> put the dgtext of grp "Festplatte 1" into tHDD1
> put the dgtext of grp "Festplatte 2" into tHDD2
> REPEAT FOR each line i in tHDD1
>     put true into myArray[i]["A"]
> REPEAT FOR each line i in tHDD2
>      put true into myArray[i]["B"]

Major Caution:

This technique only works robustly if every line in tHDD1 is unique
and if every line in tHDD2 is unique
since using    myArray [i] ["A"] would make duplicates within each  
list disappear.
If your desired result is not affected by this, then the result will  
be correct.

Path name comparisons are unique by their nature, but not all data  
sets are.

Jim Ault

More information about the Use-livecode mailing list