Hi guys im new to Java I was just wondering if theres an easy way to read in the contents of a folder rather than just an invididual file. For example at the moment im using
"C:/Documents and Settings/KierenMcDonald/Desktop/Coding/Java/Test/resource.htm"));
I would have liked to have thought that by simply giving a folder reference instead of a file reference it would have read in the folders contents.
However upon testing my java compiler had a spaz at me and went .......er .....No i dont fancy doing that.
please can someone give me the correct code to pull the folder into my program.
Thanks so much for your time.