Skip to content
Advertisement

Tag: iterator

Comparing tow large files line by line

I was wondering if there is any efficient way to compare 2 large files line by line. File 1 File 2 I am just taking the first character of each file and comparing against them. Currently i am using a very naive method of iterating through them in a double for loop. Like Reading both files into memory is not

Advertisement