GetTempFileName: String;
The GetTempFileName method creates a temporary file with a unique name and returns an absolute path to it.
Sub UserProc;
Var
s: String;
Begin
s:=Path.GetTempFileName;
End Sub UserProc;
After executing the example a temporary file is created and the "s" variable contains its unique name.
See also: