House of Fusion
Home of the ColdFusion Community

Search cf-talk

December 02, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31       

Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  ColdFusion Talk (CF-Talk)

putting " " in cffile

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jessica Kennedy
08/27/2008 04:39 PM

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...

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Justin Scott
08/27/2008 04:43 PM

> 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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dan Vega
08/28/2008 02:06 PM

This is extremely off topic but what is p with that email address Jessica! ha :0 Thank You Dan Vega danvega@gmail.com http://www.danvega.org On Thu, Aug 28, 2008 at 12:10 PM, Jessica Kennedy < police_kidnapped_your_children@yahoo.com> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Ian Skinner
08/27/2008 04:59 PM

Jessica Kennedy wrote: > 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... Yup, use single quotes.


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists