Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Return lines in file that match string

Thread Tools

Return lines in file that match string

Travis Kirstine
Posts: n/a
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.


Travis K.

Toronto, Canada
"She knows there's no success like failure
And that failure's no success at all."
-Bob Dylan-
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in running a basic code in python 3.3.0 that includes HTML file Satabdi Mukherjee Python 1 04-04-2013 07:48 PM
String#match vs. Regexp#match - confused Old Echo Ruby 1 09-04-2008 06:11 PM
How to display a string in many lines, each lines have a specified length C++ 1 12-06-2005 07:26 AM
what value does lack of return or empty "return;" return Greenhorn C Programming 15 03-06-2005 08:19 PM
Re: how to read 10 lines from a 200 lines file and write to a new file?? Joe Wright C Programming 0 07-27-2003 08:50 PM