/** * Write data to a file * * @param file File to write data to * @param data Data to write */ public static void write(File file, byte[] data) throws IOException { FileUtils.write(file,data); }
/** * Write string to a file using UTF-8 encoding * * @param file File to write data to * @param text Text to write */ public static void write(File file, String text) throws IOException { write(file, text, "UTF-8"); }
/** * Write data to a file * * @param file File to write data to * @param data Data to write */ public static void write(File file, byte[] data) throws IOException { FileUtils.write(file,data); } }
/** * Write string to a file using UTF-8 encoding * * @param file File to write data to * @param text Text to write */ public static void write(File file, String text) throws IOException { write(file, text, "UTF-8"); }