Hi I'm trying to parse an html file for input and textarea tags and retrieve the name of the field. The problem is that sometime the tag and the name are on different lines so I need to scan more than one line at a time. This was ok by reading two lines until I mismatched the lines and one got skipped since it goes 1 2 3 4 when I want to backtrack and do it
. How can I read one line and get the next line, then the next time round read the second line and the third so there is the overlap?