Revision as of 21:12, 9 February 2011 by Han84 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
public static java.io.File fileGetTmp() {
	java.io.File tmp = null;
	try {
		tmp = java.io.File.createTempFile("temp", null);
	} catch (java.io.IOException ex) {
		Ts.printErr(ex);
	}
	tmp.deleteOnExit();
	return tmp;
}
 
public static void printErr(java.lang.Exception ex) {
	Ts.printErr(ex.getMessage());
}
 
public static void printErr(String str) {
	System.out.println("---> error : " + str);
	new Exception().printStackTrace();
	System.exit(-1);
}


Back to JavaHowTo

Alumni Liaison

has a message for current ECE438 students.

Sean Hu, ECE PhD 2009