This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Search File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Search File " Watch "Search File " New topic

Search File

Mathews P Srampikal
Ranch Hand

Joined: Nov 26, 2002
Posts: 211
is there any method available to search file (test.txt)in a file folder and its subdirectories and return the directory???.

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12759
I think you need to look at the JavaDocs for - the class that Java uses for examining directories and files.
It is sorta covered in the JavaRanch Style Guide.
subject: Search File
Similar Threads
WA #1.....word association
I have a question on User Interface!
Unable to execute class file in command prompt.
how can i know the JVM is already installed on my computer ?
Eclipse - seach multiple files