Please try this:

Change the Path if you wish using
#GetFileFromPath(GetCurrentTemplatePath())# and replace functions but
for hard coded stuff here's the code
-----------------------------------------------------------------
<cfset strTrunct = "[EMAIL PROTECTED]">

<cfset strTruncated = #ReReplace(strTrunct,"@","_")#>

<cfoutput>#strTruncated#</cfoutput>

<cffile action = "write" file = "D:\\inetpub\wwwroot\#strTruncated#.txt"
output="Created by Gary Strommen" >
-----------------------------------------------------------------

Thanks.

-Sandy Vohra
-----Original Message-----
From: Gary Strommen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 05, 2006 8:52 PM
To: CF-Newbie
Subject: How to Truncate?

Goal:  I want to take the user's email and make it part of the file
name.  However, having the "@" sign in a file name is not desired.  I
want to write code that will take the user's email and change the "@" to
an underscore.  I think that the truncate command might help here but I
am having a difficult time finding information on how to use it.

Any help would be great.
Thanks!



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2029
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to