I want to find all files of a certain extension
Posted on 2006-06-20
I've got my zip utility working. But I'm hardcoding the file names, like:
String files = new String;
files = "C:\\Temp\\file1.txt";
files = "C:\\Temp\\file2.txt";
I want to loop through a given dir, like C:\Temp, and pick up all files with a certain extension and put them in an array.
All the examples on the web aren't really what I want.
I'd like to keep this to a simple method if I can.