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
System.String
dir
System.String

Returns

System.IO.FileInfo

Returns the full path to the temporary file.