package collection;
import java.io.FileWriter;
import java.io.IOException;
import java.util.*;
public class Demo1 {
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) {
FileWriter fw = null;
try {
fw = new FileWriter("f:\\demo.txt",true);//IO流文件续写
fw.write("\r\nasfdfgvagves");
fw.flush();
} catch (IOException e) {
System.out.println(e.toString());
}
finally{
try {
if(fw!=null)
fw.close();
} catch (IOException e) {
System.out.println(e.toString());
}
}
}
private static void sop(Object string) {
System.out.println(string);
}
}