Might you also need to put Chr(13) in there as well? Ade
-----Original Message----- From: Colin Murphy [mailto:[EMAIL PROTECTED]] Sent: 16 October 2002 10:36 To: CF-Talk Subject: Line Break problem in MX 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 Get the mailserver that powers this list at http://www.coolfusion.com

