import java.io.FileWriter;
import java.io.IOException;
/*
续写和换行:
FileWriter(String fileName, boolean oppend)
FileWriter(File file, boolean oppend)
*/
public class Demo02XuXie {
public static void main(String[] args) throws IOException {
FileWriter fis = new FileWriter("e.txt",true);
for (int i = 0; i <10 ; i++) {
fis.write("我为祖国骄傲!\r\n");
}
fis.close();
}
}