Return lines in file that match string

2008-10-28 Thread Travis Kirstine
I am new to python and could use some help with a fairly easy task. I would like to return all lines in a file that have the string 'coordinates' to a list. Regards, -- Travis K. Toronto, Canada She knows there's no success like

Re: Return lines in file that match string

2008-10-28 Thread Chris Rebert
On Tue, Oct 28, 2008 at 11:37 AM, Travis Kirstine [EMAIL PROTECTED] wrote: I am new to python and could use some help with a fairly easy task. I would like to return all lines in a file that have the string 'coordinates' to a list. from __future__ import with_statement with