public static void appendStringInto ( String s , File outputFile ) throws IOException { OutputStreamWriter fw = null ; try { fw = new OutputStreamWriter ( new FileOutputStream ( outputFile , true ) , StandardCharsets . UTF_8 ) ; fw . append ( s ) ; } finally { Utils . closeQuietly ( fw ) ; } }
Appends a string into a file .