Show / Hide Table of Contents

Constructor TempFile.TempFile


Overload

Creates full path string with a unique filename (GUID) for a temporary file.

public TempFile(string ext = ".tmp", string directory = null)
Parameters
ext  (string)

Filename extension with dot. Default: ".tmp". Can be null.

directory  (string)

Parent directory. If null (default), uses folders.ThisAppTemp. The function creates the directory if does not exist.

Exceptions
ArgumentException

directory not full path.

AuException

Failed to create directory.