Creating new/rewriting temporary files in loops - C#