Question
<cffile action="write" to a txt file
Hi
I'm using cffile to write to a text file, I'm looping over varibles adding addtional text. I what to have each line of the loop on seprate lines within the text file. What am I missing?
<cfloop from="1" to="10" index="count">
<cfset content = content & "blah blah blah" & count>
</cfloop>
<cffile action = "write" file = "thisfile.txt" addnewline="yes" output = "#content#">
I'm using cffile to write to a text file, I'm looping over varibles adding addtional text. I what to have each line of the loop on seprate lines within the text file. What am I missing?
<cfloop from="1" to="10" index="count">
<cfset content = content & "blah blah blah" & count>
</cfloop>
<cffile action = "write" file = "thisfile.txt" addnewline="yes" output = "#content#">