oi FlashGuy!!

loop the file based on chr(13)&chr(10) as the delimiter.. ?


-- 
Critz
 Macromedia Certified Advanced ColdFusion Developer
 <CFX_BotMaster Network="Efnet"
       Channel="ColdFusion" Blog="http://blog.ctzc.com";>




------------------------------------
Monday, October 28, 2002, 2:10:14 PM, you wrote:

F> Hi,

F> I require the following:

F> 1. Read in an external file.
F> 2. All lines that contains "DATA", "FILE", "IMAGE" are put into a variable which is 
comma-delimited. Everything else that doesn't match the criteria gets thrown out.
F> 3. The results of this variable gets stored on the users PC for future reference as 
a comma-deliimited text file (ref.txt)

F> <cflock timeout="5" name="readfile" type="READONLY">
F>         <cffile action="read" file="C:\file.txt" variable="ListLoop">
F> </cflock>

F> I'm not sure where to go next? I tried something like below but it lists 
*everything* in the external file being read in.

F> <cfif ListLoop CONTAINS "DATA" OR
F>         ListLoop CONTAINS "DATA" OR
F>         ListLoop CONTAINS "DATA">
F>        #ListLoop#

F> </cfif>


F> ---------------------------------------------------
F> Colonel Nathan R. Jessop
F> Commanding Officer
F> Marine Ground Forces
F> Guatanamo Bay, Cuba
F> ---------------------------------------------------



F> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to