[Tutor] open multiple files

Paulo Quaglio paulo_quaglio at yahoo.com
Wed Aug 15 17:26:45 CEST 2007


Hi everyone - 
  I'm beginning to learn how to program in python. I need to process several text files simultaneously. The program needs to open several files (like a corpus) and output the total number of words. I can do that with just one file but not the whole directory. I tried glob but it didn't work. Your ideas are greatly appreciated. Thanks,
  Paulo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070815/45961519/attachment.htm 


More information about the Tutor mailing list