note
Ratazong
<p>Hi [Dr Manhattan],</p><p>
have a look at the difference between my algorithm and your solution: you open the file in each iteration of the loop. And by opening a file for writing, you erase the previous content.</p>
<p>The solution is to open the file before the loop. And (additionally) inside the <c>if</c>-block, when you want to switch to the next file.</p>
HTH, Rata
1024249
1024438