3
score
1.1K
views
yes
status
CC BY-SA 3.0
Search a directory for a .txt file, without needing full pathname. - Java
As stated in the comments, there are several tools already available to search files in a directory. However, to answer your question, I wrote a simple program that should do what you are looking for: