Re: How to create a directory from a Java program?
Monday, April 9, 2001 12:32 PM
Take a look at the java.io.File class.
To create a directory, just create a new File object, and then use mkdir() to create the physical directory.
To get a list of all the files in a specific directory, just create a new File object for that directory, and then use the list() or listFiles() method.