Creates a temporary file in a directory whose name starts with
(at most) the first three characters of prefix, with an optional extension, default is .tmp.
Lucee Function Reference
gettempfile()
Example
gettempfile(string dir,string prefix,[string extension]):string
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Description |
---|---|---|---|
dir | string | Yes | Directory name |
prefix | string | Yes | Prefix of a temporary file to create in the dir directory |
extension | string | No | Extension for the temporary file, default is .tmp |