Hello. I'm new to Python and I was wondering how to read all the files in a 
folder. I used this program or command for single files.

importĀ pprint



pprint.pprint(open(r'c:\text\somefile.txt').readlines())
And if possible, is there a way to make it so that it waits at the end of each 
file for a confirmation to go onto the next file? Thanks




      
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to