Return lines in file that match string

Discussion in 'Python' started by Travis Kirstine, Oct 28, 2008.

  1. 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 failure
    And that failure's no success at all."
    -Bob Dylan-
    ------------------------------------------------------------
     
    Travis Kirstine, Oct 28, 2008
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. hiwa
    Replies:
    0
    Views:
    808
  2. Victor
    Replies:
    2
    Views:
    807
    Victor
    May 17, 2004
  3. Stan
    Replies:
    5
    Views:
    491
    Mark McIntyre
    Feb 9, 2004
  4. Greenhorn
    Replies:
    15
    Views:
    1,152
    Keith Thompson
    Mar 6, 2005
  5. Replies:
    1
    Views:
    607
    Jonathan Mcdougall
    Dec 6, 2005
  6. Murali
    Replies:
    2
    Views:
    794
    Jerry Coffin
    Mar 9, 2006
  7. Old Echo
    Replies:
    1
    Views:
    307
    Adam Shelly
    Sep 4, 2008
  8. Replies:
    1
    Views:
    314
    Dr.Ruud
    Jul 29, 2006
Loading...