Use CFSAVECONTENT as in: <CFSAVECONTENT VARIABLE="sqlOutput"> <CFINCLUDE TEMPLATE="CFOutputApp.cfm"> </CFSAVECONTENT>
<CFFILE ACTION="write" FILE="d:/whatever/myfile" OUTPUT="#sqlOutput#"> -- Mosh Teitelbaum evoch, LLC Tel: (301) 625-9191 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ > -----Original Message----- > From: Les Mizzell [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 09, 2002 5:41 PM > To: CF-Talk > Subject: cfinclude inside a cffile tag? > > > Trying to get the syntax correct: > > <cffile action="write" > file="d:/whatever/myfile" > output = "<cfinclude template="CFOutputApp.cfm">" > > > > > Which obviously don't work, as it errors on the output line. > Haven't found > anything in the docs to help me get this straight... > > The "CFOutputAppcfm" is a huge file outputting a ton of variables > from SQL, > and is being used twice elsewhere on the site. So, how to include the > "cfinclude" as part of the "output" statement? > > > I'm asking way too many questions the last few days....sorry.... > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com