Storing lines from a text file

bradfordh at gmail.com bradfordh at gmail.com
Sun Jan 29 18:13:36 EST 2006


so this:
    a, b, c, d, e =f.readlines()

..this will put the first line in a, second in b, etc? How do I
accomplish this when I'm not sure how many lines there are going to be
every time? Thanks.




More information about the Python-list mailing list