The delimiter you want is probably chr(10) (line feed)
Jerry Johnson
>>> [EMAIL PROTECTED] 06/03/03 11:51AM >>>
Help,
I'm trying to extract the e-mail addresses from a text file. Here a sample of
the text file and the code I have. Each line is separate by a carriage
return. I forget what the symbol for the carraige return is which I need for
the delimiter. Any help would be great.
Ingar Bae Swnary [EMAIL PROTECTED]
Ral Diaz Argentina [EMAIL PROTECTED]
Cris Grass Uk [EMAIL PROTECTED]
<CFFILE ACTION="Read"
FILE="D:\INETPUB\WWWROOT\wWWROOT\ADMIN_HITTITE\file_1.txt"
VARIABLE="emailtext">
<CFLOOP INDEX="fred" LIST="#ReplaceList(emailtext, """", "")#" DELIMITERS=";">
<CFIF #Trim(fred)# contains "@" AND #Trim(fred)# contains "." AND #Trim(fred)#
IS NOT "">
<CFSET fred1 = #Trim(fred)#>
<CFQUERY NAME="trotest" datasource="#Hitttie_Data_Source_dev#">
insert into test_email
(
testemail
)
values
(
'#fred1#'
)
</cfquery>
</CFIF>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Host with the leader in ColdFusion hosting.
Voted #1 ColdFusion host by CF Developers.
Offering shared and dedicated hosting options.
www.cfxhosting.com/default.cfm?redirect=10481
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4