in reply to Re^2: Super fast file creation needed
in thread Super fast file creation needed

Opening and closing your files for appending inside the loop is unnecessary. You won't get a huge speed boost by moving the opens out of the loops, but it will be an improvement.