> >What are you trying? > >You could simply read through the file line by line using the string > >search methods. Store the previous 2 lines then when found print the > >previous two lines, the current line and then read and print the next > >two lines. > > How? Does your tutorial cover that (i don't remember it doing so)?
Two topics -- one on handling files the other on handling text. Alan G. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor