 How to print previous and next lines to compare strings when reading line by line
<p>I am reading a csv file line by line and I am trying to compare previous, current and next  lines. I know I need to save three string variables as I am reading a line. But I am stuck as to how to save my three variables so that when I read line 4 to be able to print line 3 and line 5.</p>
