Here you can find the source of fileWriteString(String filePath, String strWrite, boolean append)
public static void fileWriteString(String filePath, String strWrite, boolean append)
//package com.java2s; //License from project: Open Source License import java.io.File; import java.io.IOException; import java.io.Writer; import java.io.FileWriter; public class Main { public static void fileWriteString(String filePath, String strWrite, boolean append) { File f = new File(filePath); Writer out = null;// w ww .j av a 2s .c o m try { out = new FileWriter(f, append); out.write(strWrite); out.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }