Report question

Question: Iterating over the content of a text file line by line - is there a best practice? (vs. PMD's AssignmentInOperand)