Revision as of 06:48, 4 December 2010 by Han84 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

To all math majors: "Mathematics is a wonderfully rich subject."

Dr. Paul Garrett