[Tutor] reading lists from a text file
Noufal Ibrahim
noufal at nibrahim.net.in
Thu Mar 12 18:52:10 CET 2009
Emad Nawfal (عماد نوفل) wrote:
> Hi Tutors,
> I've never had a situation in which this was useful for me, but I'm just
> curious.
> 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.
>
I suppose you could read it as a string and then 'eval' it. That'd be
risky though.
--
~noufal
http://nibrahim.net.in/
More information about the Tutor
mailing list