You might want to look into the Java string-handling functions. There's
probably something there that will serve and should be plenty fast. 

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

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?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275026
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