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.
Printable View
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.
What's your plan of attack?
Hi I also need to seach all txt files in any particular folder, including files in subfolders.
PLEASE HELP,, give the code
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.
Can anyone PLEASEEEEEE give a sample code... AM NEW AT JAVA PROGRAMMING... dont know much
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.
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