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: FileUse this variable to refer to the file.
Remarks
You can use this function together with NAME Function (File) and CLOSE Function (File).
Example
This example creates a temporary file that has the text Hello and then deletes the file by using the File.CLOSE function. This example requires that you create the following variable.
Variable | DataType |
---|---|
FileName |
File |
Copy Code | |
---|---|
FileName.CREATETEMPFILE; FileName.WRITE('Hello'); FileName.CLOSE; |