Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Java: How to append data to a File

Java: How to append  data to a File
{filelink=7572}

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
public class Append_File
 {
  public static void main(String[] argv) throws IOException
  	 {
    BufferedWriter out = new BufferedWriter(new FileWriter("test.txt", true));
    out.write("Welcom");
    out.close();
  }
}

No comments yet.

Leave a Comment