how to read and write multiple files
<p>I want to write a program for this: in a folder I have <em>n</em> number of files; first read one file and perform some operation then store result in a separate file and the read 2nd file again perform operation and save result in new 2nd file, even same procedure <em>n</em> number of files. The program read all files one by one and stores results of each file separately in python. Please give examples how I will do it.
Thanks.</p>
