I need to read from 2 files and compare their content line by line. So I need something like file.readNextLine()
functionality. How can I achieve that in Kotlin?
Edit: Both files are already sorted. Some lines are absent in first file, some lines are absent in second file. I need to find this difference.