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. Advertising

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. Joe Wright
    Replies:
    0
    Views:
    499
    Joe Wright
    Jul 27, 2003
  2. Replies:
    10
    Views:
    439
  3. Murali
    Replies:
    2
    Views:
    544
    Jerry Coffin
    Mar 9, 2006
  4. christrier
    Replies:
    12
    Views:
    209
    Bart Lateur
    Nov 16, 2005
  5. Cah Sableng
    Replies:
    0
    Views:
    231
    Cah Sableng
    Apr 23, 2007
Loading...

Share This Page