reading multiple files and writing multiple output files
<p>If I have multiple files in a directory C, and I want to write a code reading (automatically) ALL the files and processing each file and then writing an output file for each input file.</p>

<p>For example in directory C i have the following files:</p>

<pre><code>aba 
cbr
wos
grebedit
scor
</code></pre>

<p>Hint: these files are without an obvious extension</p>

<p>Then the program reads these files one by one, process, then write the output in the directory:</p>

<pre><code>aba.out
cbr.out
wos.out
grebedit.out
scor.out
</code></pre>
