private static void write(String filename, long value) { try { L.writeStringAsUTF8(filename, Long.toString(value)) ; } catch (IOException ex) {} catch (NumberFormatException ex) {} }
private static void write(String filename, long value) { try { L.writeStringAsUTF8(filename, Long.toString(value)) ; } catch (IOException ex) {} catch (NumberFormatException ex) {} }
/** Write a string to a file as UTF-8. The file is closed after the operation. * @param filename * @param content String to be written * @throws IOException */ public static void writeStringAsUTF8(String filename, String content) throws IOException { try ( OutputStream out = IO.openOutputFileEx(filename) ) { writeStringAsUTF8(out, content) ; out.flush() ; } }