If you're after the emails try

<cffile variable="text" ...

<cfset crlf = Chr(10) & Chr(13)>

<cfoutput>
<cfloop list="text" index="i" delimiters="#crlf#">
        #ListLast(i, "Chr(the number for tabs)")#<br>
</cfloop>
</cfoutput>

This assumes tabs separate the name country and email entries.

Ade

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 03 June 2003 16:51
To: CF-Talk
Subject: CFLOOP, through list, delimiters help


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
                                

Reply via email to