Write the file:
<cffile action="WRITE"
file="#filename#"
output="#fulltext#"
addnewline="no">
retrieve it with:
<cffile action="READ" file="#expandpath(filename)#.txt" variable="fulltext">
show it on screen with normal text formatting with:
#paragraphformat(FULLTEXT)#
JoAnn A. Schlosser
Senior Consultant
Association Management Software
Grant Thornton LLP
Washington, D. C.
703.837.4428
-----Original Message-----
From: Chris Jensen [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 2:29 AM
To: CF-Talk
Subject: Carriage Returns with CFFILE
Hi,
I'm having some difficulty writing a simple DOS text file with CFFILE
ACTION="write"
I'm creating the file in a variable ie
<CFSCRIPT>
outputtext = line1 & chr(13) & line2 ...etc;
</CFSCRIPT>
But cold fusion seems to be interpreting the carriage returns and/or
line feeds.
I need to get a regular DOS texrt file, ie new lines are CR/LF pairs.
I've tried outputting CF/LF's, CR's and LF's but when I look at the file
I don't end up with CR/LF's.
How do I tell cold fusion what I want?
--
---------------------------------------------------------------------
Chris Jensen [EMAIL PROTECTED]
Educational Experience (Australia)
Postal Address: PO Box 860, Newcastle NSW 2300
Freecall: 1-800-025 270 International: +61-2-4923 8222
Fax: (02) 4942 1991 International: +61-2-4942 1991
Visit our online Toy store! http://www.toysandmore.com.au/
---------------------------------------------------------------------
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists