> I need to write a .csv file with all data encased in quotation marks, the 
> problem is that cffile output uses double quotes to define the data to input. 
>  How can I get around this??  Geez, i know it's got to be something easy... 

You can either double up on the double quotes in the string, or wrap the 
contents in single quotes instead of double quotes.  For example...

<cffile contents="This is some ""awesome"" text with quotes!">

<cffile contents='This is some "awesome" text with quotes!'>

Another way would be to use CFSAVECONTENT...

<cfsavecontent variable="theOutput">This is some "awesome" text with 
quotes!</cfsavecontent>
<cffile contents="#theOutput#">


-Justin Scott



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311681
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to