GetTempFile()

Creates a temporary file in a directory whose name starts with (at most) the first three characters of prefix.

GetTempFile( dir=string, prefix=string, extension=string );

Returns: String

Argument Description
dir
string, required

Directory name

prefix
string, required

Prefix of a temporary file to create in the dir directory

extension
string, optional

Extension for the temporary file, default is .tmp

Alias: ext

Introduced: 5.3.9.72

Examples

dump(GetTempFile(getTempDirectory(), "demo"));

See also