Read your file in...

<cfset myArray = ArrayNew(1)>

<cfset i = 1>

<cfloop list="#myFile#" delimiters="#Chr(13)##Chr(10)#" index="line">
        <cfset myArray[i] = line>
        <cfset i = i + 1>
</cfloop>

should work for you!

-----Original Message-----
From: Andrea Wasik [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 28, 2000 10:50 AM
To: [EMAIL PROTECTED]
Subject: Easiest way to get a text file into a List?


I have a text file that I need to get into a list or an array so I can
compare it to the results of a query. Anyhow how can I read in that file and
turn it into a list? The file is made up of email addresses, one per line,
no comma delimiters, just carriage returns.

Thanks

Andrea

............................................................................
.....
iWon.com     http://www.iwon.com     why wouldn't you? 
............................................................................
.....

----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to