Get A Temporary Filename

Problem:

  • You need a temporary filename so you can write/read something

Solution:

  • Use System.IO.Path to create a real temporary filename for you.

Sample code:

using System.IO;
...
string tempFilename = Path.GetTempFileName();

Relevant Links:

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License