Mac OS9 and less uses #chr(13)# Mac OSX, Unix and Linux use #chr(10)# Windows uses #chr(13)##chr(10)#
Using the windows line ending will absolutely cover all the bases, but I've yet to run into a program (excepting notepad) that doesn't understand line breaks from other systems. barneyb > -----Original Message----- > From: David Collie (itndac) [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 26, 2003 9:24 AM > To: CF-Talk > Subject: RE: CFFILE and carriage returns > > > I always use 'Chr(13) & Chr(10)' (believing that covers me for > Mac and Windows) is that correct? If not what should you use? > > -----Original Message----- > From: Will Swain [mailto:[EMAIL PROTECTED] > Sent: 26 February 2003 17:11 > To: CF-Talk > Subject: RE: CFFILE and carriage returns > > > use chr(13) in orderInfo for a new line. > > w > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 26 February 2003 17:01 > 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 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

