public static void append ( File file , Object text ) throws IOException { Writer writer = null ; try { writer = new FileWriter ( file , true ) ; InvokerHelper . write ( writer , text ) ; writer . flush ( ) ; Writer temp = writer ; writer = null ; temp . close ( ) ; } finally { closeWithWarning ( writer ) ; } }
Append the text at the end of the File .