public static void fileCreateDirectory(String dir) {
	java.io.File f = new java.io.File(dir);
	if (!f.mkdir()) {
		Ts.printErr("Fail to create directory: " + dir);
	}
}
 
public static void printErr(String str) {
	System.out.println("---> error : " + str);
	System.exit(-1);
}


Back to JavaHowTo

Alumni Liaison

Questions/answers with a recent ECE grad

Ryne Rayburn