At the moment I'm trying to figure out how to do a search through a folder and list all the files by using System.out.
I am currently using a forloop to trace all the files, but it could only trace one folder. My objective is to go through every folders in one particular folder, it thats not confusing.
E.G.
search directory folder: folder1...
file1
file2
file3...
folder2 <---- how do i make it so it includes folder 2?
Is there any easier way than using a forloop?
cheers.
I am currently using a forloop to trace all the files, but it could only trace one folder. My objective is to go through every folders in one particular folder, it thats not confusing.
E.G.
search directory folder: folder1...
file1
file2
file3...
folder2 <---- how do i make it so it includes folder 2?
Is there any easier way than using a forloop?
cheers.
