This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have used my following code to find the directories under C:\\test\\loops and list them to get the display of directroies in my jsf page. Now I want to check whether every directroy contains one particulat text file by name properties.txt If one directroy contains properties.txt, then I want to add that directory name into my HashMaptest? How to do the modifications?
File has a constructor that takes a String for the file name and a directory the file should be found in. It also has a method to test if the file actually exists. You should be able to find out what you need by looking through the API