getTempFile

Creates a temporary file in a directory whose name starts with
(at most) the first three characters of prefix.

getTempFile(dir, prefix) → returns string

Argument Reference

dir string
Required

prefix string
Required

Examples
Sample code invoking the getTempFile function

Returns path of file created

getTempFile(getTempDirectory(),"testFile")

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub