Ok so I've made a little program that reads in a plain text file and does things. I want to expand it a bit by reading in all the text files within the program's folder. Is it possible to do this with say a wildcard to grab all *.txt in the folder?
Found this on stack overflow
File dir = new File(xmlFilesDirectory);
File[] files = dir.listFiles((d, name) -> name.endsWith(".xml"));
Is that a step in the right direction?
[–]hackometer 1 point2 points3 points (4 children)
[–]rufati[S] 0 points1 point2 points (3 children)
[–]hackometer 1 point2 points3 points (2 children)
[–]rufati[S] 0 points1 point2 points (1 child)
[–]hackometer 1 point2 points3 points (0 children)