How do I efficiently search for a specific string in a text file?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Saradha_Mani
Posted On:   Thursday, April 19, 2001 02:36 PM

I need to search for a specific string in a really large text file, fast. I expect it to work as fast as a grep (without using a grep) using Java. Please advise.

Re: How do I efficiently search for a specific string in a text file?

Posted By:   Michael_Wax  
Posted On:   Thursday, April 19, 2001 07:57 PM

You might want to consider using one of the Apache Jakarta regular expressions packages for Java, such as Oro and Regexp. Check at apache.jakarta.org/oro and apache.jakarta.org/regexp.
About | Sitemap | Contact