Creates a temporary file in a directory whose name starts with (at most) the first three characters of prefix.
Name of a temporary file, as a string.
GetTempFile(dir, prefix)
| Parameter | Description |
|---|---|
|
dir |
Directory name |
|
prefix |
Prefix of a temporary file to create in the |
<h3>GetTempFile Example</h3> <p>The temporary directory for this ColdFusion Server is
<cfoutput>#GetTempDirectory()#</cfoutput>. <p>We have created a temporary file called: <cfoutput>#GetTempFile(GetTempDirectory(),"testFile")#</cfoutput>
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | KnowledgeBase | Bug Reporting
Version 7
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/7/htmldocs/00000498.htm
Comments
No screen name said on Sep 13, 2006 at 4:26 PM :