ice78991
Programmer
- Nov 20, 2006
- 216
I am trying to write a series of files. I would like coldfusion to generate unique file names for me, but the code below simply overwrites
<cffile action="write" nameconflict="MakeUnique" file="#getDirectoryFromPath(getTemplatePath())#file.txt" output="the content">
Is it possible to achieve this or should I do the following
<cffile action="write" nameconflict="MakeUnique" file="#getDirectoryFromPath(getTemplatePath())##CreateUUID()#.txt" output="the content">
<cffile action="write" nameconflict="MakeUnique" file="#getDirectoryFromPath(getTemplatePath())#file.txt" output="the content">
Is it possible to achieve this or should I do the following
<cffile action="write" nameconflict="MakeUnique" file="#getDirectoryFromPath(getTemplatePath())##CreateUUID()#.txt" output="the content">