new FileWriter(String fileName, boolean append) : FileWriter « java.io « Java by API






new FileWriter(String fileName, boolean append)

  

import java.io.BufferedWriter;
import java.io.FileWriter;

public class Main {
  public static void main(String[] argv) throws Exception {
    BufferedWriter out = new BufferedWriter(new FileWriter("filename", true));
    out.write("aString");
    out.close();
  }
}

   
    
  








Related examples in the same category

1.new FileWriter('LPT1:')
2.new FileWriter(File file)
3.new FileWriter(String string)
4.FileWriter: close()
5.FileWriter: flush()
6.FileWriter: write(int i)