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

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
/**
 * Append the string to the file.
 * @param filename
 * @param text
 */
public static void fileFromString(String filename, String text) {
	java.io.File file = new java.io.File(filename);
	try {
		java.io.FileWriter fw = new java.io.FileWriter(file, true);
		fw.write(text);
		fw.close();
	} catch (java.io.IOException ex) {
		Ts.printErr(ex);
	}
}
 
public static void printErr(java.lang.Exception ex) {
	printErr(ex.getMessage());
}


Back to JavaHowTo

Alumni Liaison

Basic linear algebra uncovers and clarifies very important geometry and algebra.

Dr. Paul Garrett