os.Path.makeTempName

Generates a temporary file name.

Syntax

os.Path.makeTempName()
  RETURNS STRING

Usage

This method creates a new temporary file path, with a unique file name, in the temporary directory of the process.

Note: The method just returns a new temporary file name. A file created with this name must be deleted by the programmer. It will not be deleted automatically when exiting the program.

The temporary directory can be defined with the DBTEMP environment variable. If the DBTEMP variable is not defined, the runtime system uses the temporary directory as defined by the operating system. For more details, see the DBTEMP environment variable.