Use #chr(10)# in your variable where you want line breaks.  Or, you can just
create the file content using CFSAVECONTENT, which is probably easier if
there isn't a lot of complex logic, and you're using CF5+.

barneyb

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 9:01 AM
> 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
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

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

Reply via email to