I am getting error
I am learning java. I need a program which reads directory name from a file and creates a directory. At the first phase, i wanted to see that the directory is created. Once I succeed in it, i would like to next phase and make it read a file, take a directory name and create a directory. However, I am getting an error. Could you please help me find out the error:
the code is:
import java.io.*;
public class Discfree {
public static void main (String [] args) throws IOException {
String [] Command = null;
Command = new String[2];
Command[0] = "md c:\\javatstdir";
// Command[1] = "";
Process Findspace = Runtime.getRuntime().exec(Command);
BufferedReader Resultset = new BufferedReader(
new InputStreamReader (
Findspace.getInputStream()));
String line;
while ((line = Resultset.readLine()) != null) {
System.out.println(line);
}
}
}

