Actually your code is only about 60,000 times faster than the OP's code. The large file is opened and read once for each line (60,000 times that is) in the smaller file in the OP's version. The smaller file is opened and read once only.
In other respects your reply is pretty much the same as ikegami and my replies ;).
In reply to Re^2: Compare 2 files and create a new one if it matches
by GrandFather
in thread Compare 2 files and create a new one if it matches
by shawshankred
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |