Java BufferedWriter Write writeFileAppend(String filePath, String content)

Here you can find the source of writeFileAppend(String filePath, String content)

Description

write File Append

License

Apache License

Declaration

public static boolean writeFileAppend(String filePath, String content) 

Method Source Code


//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;
    }
}

Related

  1. writeFile(String filename, Map map)
  2. writeFile(String line, File file)
  3. writefile(String m, String path)
  4. writeFile(String outputLocation, String fileName, List content)
  5. writeFile(String p_name, String p_encoding, String p_content)
  6. writeFileContent(File audioFile, short[] data, boolean littleEndian)
  7. writeFileContents(File file, String contents)
  8. writeFilenames(String folderPath, LinkedList listOfPopulationFiles)
  9. writeFileText(File file, String text)