::hwat::io::CreateTempFileName

Create a temp file and open it.

Syntax

::hwat::io::CreateTempFileName {str_extension} {str_basePath}

Arguments

str_extension
Argument to serve as file extension.
Optional.
str_basePath
Argument to serve as the base path for the file. Without, just returns a file name.
Optional.

Returns

Success
Full name of temp file, suitable for use with CreateFile.
Failure
{}

Example

::hwat::io::CreateTempFileName key c:/mystuff/