printwriter

PrintWriter pw = new PrintWriter(file/outputstream, true);

调用println()printf()或format()的方法才可以成功自动刷新

不设置自动刷新就手动调用 flush();

猜你喜欢

转载自blog.csdn.net/hx_superman/article/details/70850800