I'm importing a text file and bring in each line one-by-one. The problem is that I need to check ahead of the line I'm processing so I can be sure what to do with the current line. I want to do a readline command, check that line, and then come back to the original line. The program would be worlds more complicated if I read more than one line in at a time.
Is there a command like ts.readline but move Up the file (one line) instead of Down the file (one line)?