FileWriter(String fileName, boolean append) constructor from FileWriter has the following syntax.
public FileWriter(String fileName, boolean append) throws IOException
In the following code shows how to use FileWriter.FileWriter(String fileName, boolean append) constructor.
/*ww w . jav a 2s. c om*/ import java.io.FileWriter; public class Main { public static void main(String[] args) throws Exception { FileWriter fileWriter = new FileWriter("c:/abc.txt",true); fileWriter.append("java2s.com"); fileWriter.close(); } }