PHP code to compare two large text files with ~300,000 entries and output differences
Posted
by Dave
on Stack Overflow
See other posts from Stack Overflow
or by Dave
Published on 2010-05-06T13:30:51Z
Indexed on
2010/05/07
4:08 UTC
Read the original article
Hit count: 259
hi, i've got two lists A and B, B = A + C - D. All elements are unique, no duplicates. How do i get the lists of:
(1) the new items added, C
(2) the old items removed, D
C and D aren't more than 10000 elements or so.
Edit
Crap, sorry guys - forgot the important detail - these are both text files, not in memory elements.
© Stack Overflow or respective owner