No doubt I am doing something wrong here. In the past, if I
wanted to write query results to a file, I would do this:
<cffile action = "write" output = "">
<cfoutput query ="q">
<cffile action = "action=" output = "#querydata#">
etc
Worked great so I thought I'd try something suggested in
these forums, this:
<cfsavecontent variable = "x">
<cfoutput query ="q">
#data#
closing tags
<cffile action = "write" output = "#x#">
When I opened the file to see how it turned out, I got
unexpected results. After some experimentation I concluded that and
white space in the source code between the opening and closing
cfcontent tags were being written to the file.
Back to the old method.