[Tutor] reading lists from a text file

Emad Nawfal (عماد نوفل) emadnawfal at gmail.com
Thu Mar 12 17:10:22 CET 2009


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.


-- 
لا أعرف مظلوما تواطأ الناس علي هضمه ولا زهدوا في إنصافه كالحقيقة.....محمد
الغزالي
"No victim has ever been more repressed and alienated than the truth"

Emad Soliman Nawfal
Indiana University, Bloomington

--------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090312/d2da7d66/attachment.htm>
-------------- next part --------------
["this", "is", "a", "list"]
["this", "is", "another", "list"]
["this", "is","list", "#", "2"]


More information about the Tutor mailing list