Show: Delphi C++
Display Preferences

System.IOUtils.TPath.GetTempFileName

From XE2 API Documentation
Jump to: navigation, search

Delphi

class function GetTempFileName: string; static;

Properties

Type Visibility Source Unit Parent
function public System.IOUtils.pas System.IOUtils TPath

Description

Generates a unique temporary file.

Call GetTempFileName to generate a new uniquely-named temporary file. GetTempFileName actually creates a zero-sized file in a temporary location and returns its name. The caller must delete the file after it is not used anymore.

Note: GetTempFileName raises an exception if the user has no access to the system's temporary directory.

See Also

Personal tools
Previous Versions
Translations