Temporary files in C#
29-12-2015 11:05:09
C# / IO
0 Bookmark(s)
259 View(s)
Get the path for temp files in windows:
var tempPath = Path.GetTempPath();
Creates a new temporary file in the temp folder and prevents name collisions.
After calling this function, the file exists on the disk.
var tempFileName = Path.GetTempFileName();