Storing lines from a text file

bradfordh at gmail.com bradfordh at gmail.com
Mon Jan 30 00:13:36 CET 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