Trying to make this work I eventually wrote two different lines of code. The two files referenced (one cfm, one txt) are in the same directory as the file with the code below. I can run it. It doesn't complain. Seems to work. But neither of the files are updated. What am I doing wrong? Would appreciate any guidance.
<cfset logthis1 = "#DateFormat(Now(),'YYYY-MM-DD')# #TimeFormat(Now(),'HH:MM')# | DELETE | Team X deleted by Alias (UID Z)">
<cffile action="Append" file="teamjic.cfm" output="#variables.logthis1#">
<cfset logthis2 = "#DateFormat(Now(),'YYYY-MM-DD')# #TimeFormat(Now(),'HH:MM')# | DELETE | Team X deleted by Alias (UID Z)">
<cffile action="Append" file="teamjic.txt" output="#variables.logthis2#">
I also tried adding:
addNewLine="yes" to the cffile tags but that didn't help.
|
[/code]