What about making strCR, Chr(10) & Chr(13)? -----Original Message----- From: FlashGuy [mailto:[EMAIL PROTECTED]] Sent: 03 September 2002 15:12 To: CF-Talk 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 --------------------------------------------------- ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. 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

