[Tutor] lst file

SwartMumba snake swartmumba at yahoo.com
Thu Jan 24 11:42:59 CET 2008


Hi

I am trying to read from  a specific .lst file. When I read from it, it just prints out blank lines and I am sure that this file contains content.

This is what I am using to read from the file:

f = open("C:\\Users\\UserName\\Directory\\words.lst")

for line in f:
    print line

f.close()

Do you guys know what is wrong?

Thanks in advance.

       
---------------------------------
Never miss a thing.   Make Yahoo your homepage.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20080124/017ddbdc/attachment.htm 


More information about the Tutor mailing list