UtilFileGetTempFile(DirectoryInfo, String) Method

Creates a uniquely named, zero-byte temporary file on the specified folder with the specified file extension and returns the file.

Definition

Namespace: DevCase.Core.IO.FileSystem
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static FileInfo GetTempFile(
	DirectoryInfo dir,
	string extension
)

Parameters

dir  DirectoryInfo
The folder where to create the temporary file.
extension  String
The file extension to assign to the temporary file.

Return Value

FileInfo
The resulting FileInfo.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Exceptions

ArgumentNullException extension

See Also