search files
hi
I want to search all the text file in the pc by using Java.Is any body can help me to solve this pls? It is for my project, i have to display all the text files in the computer.
[185 byte] By [
aravi] at [2007-11-11 8:15:36]

# 2 Re: search files
Hi I also need to seach all txt files in any particular folder, including files in subfolders.
PLEASE HELP,, give the code
# 3 Re: search files
Take a look at the methods of the java.util.File class to handle folders and files. Do a search of all files inside of all folders and subfolders - for each file you'll have to open it into a stream to be processed, then close and move to the next.
nspils at 2007-11-11 22:37:56 >

# 5 Re: search files
But you know enough to beg for someone to do your work for you?
There are plenty of code listings available as a result of a search on Google or other search engine, if all you're interested in is copying or passing someone else's work off as your own.
nspils at 2007-11-11 22:40:05 >

# 6 Re: search files
heres a smaple program that will get u started. hopfully. I just want to say that people here or on anyother forum will not write out code for people unless its very small. you need to put some effort in and produce some code.
http://www.java.codeyourself.com/Download.php?ID=28
major at 2007-11-11 22:40:59 >
