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

Ph.D. on Applied Mathematics in Aug 2007. Involved on applications of image super-resolution to electron microscopy

Francisco Blanco-Silva