I would like to list files and folders in a directory
for example I would like to list the files and folders in C:\testFolder\anotherFolder
How do I use the File class in order to do this... Also, it needs to be a program that can possibly be ran on other systems. So I guess this is why I need to use the File.seperator deal. I know that I will need to use list(), and the list gets returned as an array, but other than that I don't know what to do.
Any advice would be magnificent.
Thanks
for example I would like to list the files and folders in C:\testFolder\anotherFolder
How do I use the File class in order to do this... Also, it needs to be a program that can possibly be ran on other systems. So I guess this is why I need to use the File.seperator deal. I know that I will need to use list(), and the list gets returned as an array, but other than that I don't know what to do.
Any advice would be magnificent.
Thanks