All you would need to do is loop thru all the files in the dir, then, in that loop, read thru each file until either you match the text or reach EOF.
What data structures would you need?
JamesCherrill
Posting Genius
6,371 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
is any one there to help me? i need to know how a text folder is searched using java..
.
There is no such thing as a text folder.
Also start a new thread with some code since in this thread there were some suggestions.
If those do not cover you, make your question a little bit more clear
javaAddict
Nearly a Senior Poster
3,329 posts since Dec 2007
Reputation Points: 1,014
Solved Threads: 448
Hi
im doing my final year in engineering in that we have to undergo a project. i am doing text search that is if we give a name like sachin and if that word present in that folder it has to display its content. how to do this?
Also start a new thread with some code since in this thread there were some suggestions.
If those do not cover you, make your question a little bit more clear
javaAddict
Nearly a Senior Poster
3,329 posts since Dec 2007
Reputation Points: 1,014
Solved Threads: 448
how to see your coding? i couldn't find...
This thread has a few suggestions. If you still have problems then START a new thread, withspecific questions followed with what you have done so far
javaAddict
Nearly a Senior Poster
3,329 posts since Dec 2007
Reputation Points: 1,014
Solved Threads: 448