How to get a temporary file on the fly

Did you already know the methods Path.GetTempPath() and Path.GetTempFileName() in the System.IO namespace.

The very useful method GetTempFileName() creates a temporary file for you in a location you have write access. You then can write temporary data to this file.

Leave a Reply

Your email address will not be published. Required fields are marked *