FileHelper.GetTempFile Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

GetTempFile(string, string)

Returns a new temporary file, e.g. App_Data\Temp\c386dfed-9c79-42a6-bfe1-5d740cc2a934.txt

public static FileInfo GetTempFile(string ext, string dir = null)

Parameters

ext
string

File extension of the temporary file, e.g. ".png".

dir
string

The directory where the temporary file should be created, or null to use the default temp directory.

Returns

System.IO.FileInfo

Returns the full path to the temporary file.