I have two big text Files each having more than 10 Million lines. How can i compare the files and get different lines in the files using C++.
I have tried loading one file into memory and sorted the memory and used the binary tree logic to compare the files. It compared and gave me the result in 20 Sec. But it's consuming more memory. (The text file is around 500 MB).
I want to compare two files without consuming more memory, a Good Performance and to have minimal effects on Hard Disk.