I want to use
File f = new File(\"C:\\\\\");
to make an ArrayList with the contents of the folder.
I am not very good with buffered
If you want to retrieve all the files recursively, you can do something like below
public class FileLister {
static List fileList = new ArrayList();
public static void main(String[] args) {
File file = new File("C:\\tmp");
listDirectory(file);
System.out.println(fileList);
}
public static void listDirectory(File file) {
if(file.isDirectory()) {
File[] files = file.listFiles();
for(File currFile : files) {
listDirectory(currFile);
}
}
else {
fileList.add(file.getPath());
}
}
}