Create a temporary file in temp folder

Madhu.b.rokkam
Posted by Madhu.b.rokkam under C# category on | Points: 40 | Views : 4824
string tempFileName = Path.GetTempFileName();
Console.WriteLine(tempFileName);

output
C:\Users\Madhu\AppData\Local\Temp\tmp6B27.tmp

Path.GetTempFileName() - Creates a new temp file in the temp folder.

Comments or Responses

Login to post response