in reply to Re^2: nested loops to compare 2 files is only looping a limited number of times.
in thread nested loops to compare 2 files is only looping a limited number of times.
When the inner loop goes to the end of it's file, it stays there. It doesn't reset the file pointer every time you enter that while loop.
adding a seek BS, 0, 0 before your inner while loops should get your on the right track.