Adobe ColdFusion 8

GetTempFile

Description

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

Returns

Name of a temporary file, as a string.

Category

System functions

Function syntax

GetTempFile(dir, prefix)

See also

GetTempDirectory

Parameters

Parameter

Description

dir

Directory name

prefix

Prefix of a temporary file to create in the dir directory

Example

<h3>GetTempFile Example</h3>
<p>The temporary directory for this ColdFusion Server is
    <cfoutput>#GetTempDirectory()#</cfoutput>.</p>
<p>We have created a temporary file called:
<cfoutput>#GetTempFile(GetTempDirectory(),"testFile")#</cfoutput></p>



Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant