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.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to