CREATETEMPFILE Function (File)

Creates a temporary file. This enables you to save data of any format to a temporary file. This file has a unique name and will be stored in a temporary file folder.

File.CreateTempFile

Parameters

  • File
    Type: File

    Use this variable to refer to the file.

Remarks

You can use this function with NAME Function (File) and CLOSE Function (File).

This function is not supported in the RoleTailored client.

Example

This example creates a temporary file with the text Hello and then deletes the file by using the File.CLOSE function. This example requires that you create the following variable.

Variable Data type

FileName

File

FileName.CREATETEMPFILE:
FileName.WRITE('Hello');
FileName.CLOSE;

See Also

Reference

File Data Type