Dieter Deyke wrote: >> sout = os.popen('pdftotext "%s" - ' %f) > Your program above should read: > > sout = os.popen('pdftotext "%s" - ' % (f,)) What is the significance of doing it this way?