[Tutor] reading lists from a text file

Alan Gauld alan.gauld at btinternet.com
Thu Mar 12 18:46:34 CET 2009


"Emad Nawfal (عماد نوفل)" <emadnawfal at gmail.com> wrote

> If there is a text file that has a list or number of lists in it, is 
> there
> is a way to read the lists in the file as lists, and not as a 
> string. Sample
> file attached.

Not that I know of. If you made the file include assignments to 
variables
or one big list with embedded lists inside you could eval() the file 
but that
is a huge security risk.

Alan G. 




More information about the Tutor mailing list