Here you can find the source of writeFileAppend(String filePath, String content)
public static boolean writeFileAppend(String filePath, String content)
//package com.java2s; //License from project: Apache License import java.io.*; public class Main { public static boolean writeFileAppend(String filePath, String content) { boolean res = true; BufferedWriter out = null; try {/* ww w .j a v a 2s . com*/ out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(filePath, true), "UTF-8")); out.write(content); } catch (Exception e) { res = false; } try { out.close(); } catch (IOException e) { } return res; } }