Hi,
You could try something like this:
<cffile action="READ"
file="c:\readme.txt"
variable="ReadMe">
<CFSET ReadMe = replace(ReadMe,"#Chr(13)##Chr(10)#", "<br>", "ALL")>
<cfoutput>
<p>#ReadMe#</p>
</cfoutput>
I think this might work also, but I don't know which might be better.
You'd have to test it.
<cffile action="READ"
file="c:\readme.txt"
variable="ReadMe">
<CFSET ReadMe = REReplace("#ReadMe#","[[:space:]]","<br>","ALL")>
<cfoutput>
<p>#ReadMe#</p>
</cfoutput>
HTH,
Mike Wilson
Application Developer
TEAMtalk, Inc.
Tel: 704.377.7477
Fax: 704.377.3788
[EMAIL PROTECTED]
www.teamtalk.com <http://www.teamtalk.com>
A TEAMtalk Websites:
www.internetsoccer.com
www.womenssoccer.com
www.racingone.com
www.speedfx.com
www.speedleague.com
-----Original Message-----
Hi,
I'm reading in contents of a file and want to manipulate the output.
The contents of "text.txt" reads as follows:
file1.txt
file2.txt
file3.txt
file4.txt
file5.txt
<cffile action="READ"
file="c:\text.txt"
variable="ReadMe">
<cfoutput>
<p>#ReadMe#</p>
</cfoutput>
The above outputs like:
file1.txt file2.txt file3.txt file4.txt file5.txt
How can I get it to output like:
file1.txt
file2.txt
file3.txt
file4.txt
file5.txt
______________________________________________________________________
Why Share?
Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
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