Get/open temp file in .NET
- by acidzombie24
I would like to do something like the below. What function returns me an unique file that is opened? so i can ensure it is mine and i wont overwrite anything or write a complex fn generate/loop
BinaryWriter w = GetTempFile(out fn);
w.close();
File.Move(fn, newFn);