I am reading in a file like
************************
<word> word
<word> word
<word> word word word
<word> word
<word> word word
<word> word word
<word> word word
**************************
I want to ammend the first line, only if the second line contains a specific word.
Its OK till I want to go back a line. If usin while (<>) I just
fall throught the file line by line, but I want to read a line then jump back to the line before
can anyone help. The pattern of the file within the ***s may be repeated several hundred times
Originally posted as a Categorized Question.