You could:

<cfset crlf="#chr(13)##chr(10)#">
Then insert #crlf# wherever you need the carriage return/linefeed.


Or, you can just set the variable with the crlf in it:

<cfset output="Workshop Registration Information
startDate: #var#
endDate: #var2#
..">

Lastly, you could use CFSAVECONTENT..

HTH
-Ryan

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 12:01 PM
To: CF-Talk
Subject: CFFILE and carriage returns


I am trying to write files using <CFFILE> and I would like to have carriage
returns in the file to make it look something like below:

Workshop Registration Information
startDate: blah
endDate: blah
workshopID: blah
title: blah
...

Right now, I am creating a variable called orderInfo and writing that to the
file.  The problem is that my file ends up with everything on one long line and
looks something like below:

Workshop Registration Information  startDate: blah  endDate: blah  workshopID:
blah  title: blah  ...

Anyone know how to solve this?  Any suggestions would be really appreciated.

--Jeff





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to