get previous line in jython
- by kdev
I wanted to write the line of previous line of the searched string .how can i do that
Lets say my two lines are
AADRG
SDFJGKDFSDF
and i am searching for SDF and found out SDFJGKDFSDF but how can i get previous line AADRG
does file.readline()-1 works . Please suggest
Thanks