Quote Originally Posted by LMHmedchem View Post
Am I missing the point here? I have attached my src and test files if anyone is interested.
When you start comparing boolean values with false, it's either time to get some sleep or you've missed the point.

The loop runs as long as both bools are true. That means that after the loop, at least one of the bools is false. If both are false, the two files have the same number of lines. So only if exactly one of the two is true, you have an error. Now you pick which conditional expression matches that situation.