Try

<cffile action="read" file="c:\whatever_path\filename.txt"
variable="varname">
<cfset varname = replace(varname,"#chr(10)#","">
<cfoutput> #varname# </cfoutput>


You can't nest a tag inside a function, at least that I know of.

- Matt Small



-----Original Message-----
From: Perez, Bismark [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 19, 2002 11:37 AM
To: CF-Talk
Subject: Using Replace() to replace "hard returns" on <cfinclude>

Hello there, 

I have a text file that I want to include in a page, but I would like to
replace() all the hard returns in it first.  Can I do all in one line?
for
example:

<cfoutput> #replace(<cfinclude template="... >, ... )# </cfoutput>


TIA 

______________________________________________________________________
Dedicated Windows 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=coldfusiona
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

Reply via email to