/** * 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()); }