<cfset session.source = Replace(temp, "##", "", "ALL")>
-----Original Message-----
From: bfalloon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 11:07 PM
To: CF-Talk
Subject: Replace #'s Function!!
Hello all,
I've encounter a stumbling block...
I'm performing a CFFILE action to read a text document that contains HTML,
but I need to remove any # symbols before I can used the code from the file.
I've included my code below, but the # symbol always throws an error.
I've also tried double pound signed, but that just seems to completely
escape the symbol to replace.
<cffile action="READ"
file="d:\code.txt"
variable="code">
<cfset temp = "#code#">
<cfset session.source = Replace(temp, "#", "", "ALL")>
In the Replace function I am tried to replace all #'s with nothing...
It's not working though.
Your help is greatly appreciated!!
Benjamin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists