附加到文件
import java.io.BufferedWriter; /* 来自 *时 代 J a v a - nowjava.com*/ import java.io.FileWriter; import java.io.IOException; public class Main { public void m() { try { BufferedWriter out = new BufferedWriter(new FileWriter("filename", true)); out.write("aString"); out.close(); } catch (IOException e) { } } } /** 来 自 时代Java **/