look into the csv module. (for comma-separated-value text files.) Tom Strickland wrote:
>I have a file that contains many lines, each of which consists of a string >of comma-separated variables, mostly floats but some strings. Each line >looks like an obvious tuple to me. How do I save each line of this file as a >tuple rather than a string? Or, is that the right way to go? > >Thank you. > >Tom Strickland > > -- http://mail.python.org/mailman/listinfo/python-list