"The below code outputs *every* line in the file to the
> screen." from your code, all of the lines in your "test.txt" file are
exactly "d:\". Please post an example of the contents of your test file.

-----Original Message-----
From: FlashGuy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 10:31 AM
To: CF-Talk
Subject: Re: Checking variable within CFLOOP


Yea...I get the same results?


On Tue, 3 Sep 2002 09:20:05 -0500, Larry Juncker wrote:

> Have you tried
>
> cfif Line CONTAINS "d:\">
> #Line#
> </cfif>
> </cfoutput>
>
>
> ----- Original Message -----
> From: "FlashGuy" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Tuesday, September 03, 2002 9:11 AM
> Subject: Checking variable within CFLOOP
>
>
> > Hi,
> >
> > I'm reading in a file and need to check and output only the lines that
> contain "d:\". The below code outputs *every* line in the file to the
> screen.
> > Whats wrong with the syntax below?
> >
> > <cfoutput>
> > <cfset strCR = Chr(10)>
> > <cffile action="read" file="C:\test.txt" variable="ListLoop">
> >
> > <cfloop list="#ListLoop#" Index="Line" Delimiters="#strCR#">
> >
> > <cfif Line EQ "d:\">
> > #Line#
> > </cfif>
> > </cfoutput>
> >
> >
> > ---------------------------------------------------
> > FIGJAM
> > ---------------------------------------------------
> >
> >
> >
> >
>

______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to