Madhur <madhurrajn at gmail.com> writes: > If the files2 is unordered, then the above logic does not work. How to > takle it? This sounds like a homework problem. Also, you are trying to reimplement the unix "comm" command.