Right, but my question how the file is being written out from inside the loop...