Yeah, I thought of that after posting my second code... but I saw you'd already posted code like that, so didn't bother with another update/post.
As a suggestion to Q.and, if using Marshall's code, I'd recommend picking the shorter file for "file2" and the longer file for "file1" -- it uses the least memory to store file2, but still requires only len(file1)+len(file2) line reads.
In reply to Re^8: Simple comparison of 2 files
by pryrt
in thread Simple comparison of 2 files
by Q.and
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |