Hi,

I require the following:

1. Read in an external file.
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.
3. The results of this variable gets stored on the users PC for future reference as a 
comma-deliimited text file (ref.txt)

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

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

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

</cfif>



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




-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to