I have a problem with creating a string with line breaks in it and saving the string to a file. ------------------------------------------------- messagetext=""; messagetext = "#messagetext##reference#"; messagetext = "#messagetext##Chr(10)##replacedphonenumber#"; messagetext = "#messagetext##Chr(10)##Trim(message)#";
<cffile action="WRITE" file="file.txt" output="#messagetext#" addnewline="No"> -------------------------------------------------- This code ran fine in coldfusion 4.5 but it seems to be putting invalid characters instead of line breaks in MX. I have changed the code todo three file appends which works, but I was hoping someone would be able to suggest a better way of doing this. Cheers, Colin Murphy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.

