import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
public class BuffTest {
public static void main(String[] args)throws Exception {
// TODO 自动生成的方法存根
File f = new File("D:"+File.separator+"caoxing.txt");
if(!f.exists())
{
f.createNewFile();
}
BufferedWriter bw = new BufferedWriter(new FileWriter(f,true));
for(int i=0;i<30;i++)
{
bw.write(i);
bw.flush();
}
bw.close();
}
}