[Tutor] File reading

Umamaheshwar Rao mahesh.rao78 at gmail.com
Thu Jun 19 03:08:58 CEST 2014


Hi Experts,

I have a file with below format

this is first file operation
x-1  "all the best"
x-2  "all the best 2 next line
         check this"
x-3  "last line"


i need extract the lines starting with x-1 and x-2, can some throw some
light on how to do?

Thanks,
Uma
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140618/ffa386a6/attachment.html>


More information about the Tutor mailing list