See, I knew there had to be a list function that I forget about! Thanks
Rick.

-----Original Message-----
From: Rick Root [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 10, 2007 1:13 PM
To: CF-Talk
Subject: Re: Finding one line of text in a large text file.


<cfif trim(listLast(fileContents,chr(10))) contains "eof lines WXYZ">
  ...
</cfif>

Rick

Or something equivalent...
On 4/10/07, Che Vilnonis <[EMAIL PROTECTED]> wrote:
> Hello all. I am reading the contents of a tab delimited text file 
> using <cffile> and the new line character. It may have up to 8500 
> lines. The last line will have a single line of text that reads 
> "eof,lines:WXYZ" where WXYZ is the number of lines in the file. This 
> last line signifies that the file is complete and not a partial file.
>
> Once I load the contents of the file with <cffile>, what would be the 
> *most
> efficient* way that I could verify that the last line of this text file
> contains the needed text "eof,lines:"? Would the <find> function be my
best
> bet, or something else?
>
> Thanks, Che
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274957
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to