Searching in files
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Wednesday, May 30, 2001 11:24 PM

How can we search a particular string in a file using java?

Re: Searching in files

Posted By:   Tim_Rohaly  
Posted On:   Friday, June 1, 2001 10:33 AM

The same way you would in any other language -
read in the file and scan for the sequence of bytes
you are looking for. You might want to read the
Java Tutorial chapter on IO: http://java.sun.com/docs/books/tutorial/essential/io/index.html.
(See the box to the right where is shows "Related Links"? )
About | Sitemap | Contact