Replace the CRLF characters with HTML <br>'s...

<cfset ReadMe = Replace(ReadMe, Chr(13) & Chr(10), "<br>", "ALL")>

Again, I would point you toward the CFML Language Reference, handily available in CF 
Studio.  Examine the Chr() and the Replace() functions...

On Thu, 21 February 2002, phumes1 wrote:

> 
> 
> 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
> 
> Thanks
> 
> 
> -------------------------------------------------------------------------
> This email server is running an evaluation copy of the MailShield anti-
> spam software. Please contact your email administrator if you have any
> questions about this message. MailShield product info: www.mailshield.com
> 
> -----------------------------------------------
> To post, send email to [EMAIL PROTECTED]
> To subscribe / unsubscribe: http://www.dfwcfug.org



-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to