I need to search a folder in Java and get all the names of .txt files in the folder into an ArrayList
.. I got NO idea what so ever how to do this.. :) So I would be glad to receive any help and ideas that you guys have :)
And just to specify.. its not the .txt I want to load.. just the names from the .txt files. and there is only txt documents in the folder by the way. :)
I wonder if there is anything like
for(games/ get all txt documents){ArrayList add.nameOfTxt};
All needed information are on stack already, use search :)
Sample code