You just need to build up a string variable with the HTML code in it, then write it out with CFFILE. Like... <CFSET FileString = "<HTML><BODY>"> <CFSET FileString = FileString & "(some more code)"> <CFSET FileString = FileString & "<TR><TD>" & Color & "</TD><TD>" & Type & "</TD></TR>"> etc etc. ----- Original Message ----- From: "BT" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Wednesday, August 01, 2001 12:28 PM Subject: storing random generated data as a textfile. > Please not flames from car owners... This question is nothing personal... > But if you do own a brown pinto; I'm sorry. > > > I have a column which has several cars as such: > ID Color Type > 1 Blue Chrysler > 2 Black Ford > 3 Red Diablo > 4 Brown Pinto > > I want to generate 2 different text files that have 2 different items and > HTML in each file so maybe <tr><td>#Color#</td><td>Chrysler</td></tr> > > How to I store the output WITH HTML in a text file? > Or I could set it as a variable then how do I set a variable with "<"'s in > it? > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

