Storing lines from a text file

Discussion in 'Python' started by bradfordh@gmail.com, Jan 29, 2006.

  1. Guest

    Hello everyone.

    I am not sure how hard of a question is, but I do know that I need some
    help if you can give it. What I want to do is read the lines in a text
    file and store each line into a variable. I believe that I can use
    readlines() to read the individual lines, but how would I store each
    line into a variable for further analysis? Thanks for any and all
    suggestions.


    -Tempo-
     
    , Jan 29, 2006
    #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. Replies:
    10
    Views:
    507
  2. Murali
    Replies:
    2
    Views:
    778
    Jerry Coffin
    Mar 9, 2006
  3. toton
    Replies:
    11
    Views:
    969
    toton
    Oct 13, 2006
  4. Jonathan Wood
    Replies:
    1
    Views:
    710
    Jonathan Wood
    Jun 2, 2008
  5. christrier
    Replies:
    12
    Views:
    356
    Bart Lateur
    Nov 16, 2005
  6. Replies:
    17
    Views:
    464
    Tad McClellan
    Mar 10, 2006
  7. mike
    Replies:
    3
    Views:
    143
    Xho Jingleheimerschmidt
    Sep 9, 2009
  8. Cah Sableng
    Replies:
    0
    Views:
    411
    Cah Sableng
    Apr 23, 2007
Loading...