to write html to a file:
<cfset Variables.filecontents = "<tr><td>#color#</td></tr>">
<cffile action="WRITE" file="somefile" output="#Variables.filecontents#">
-----Original Message-----
From: BT [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 11:29 AM
To: CF-Talk
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