Look for a string on a file and get its line number

Horacius ReX horacius.rex at gmail.com
Tue Jan 8 09:19:25 CET 2008


Hi,

I have to search for a string on a big file. Once this string is
found, I would need to get the number of the line in which the string
is located on the file. Do you know how if this is possible to do in
python ?

Thanks



More information about the Python-list mailing list