标签:ges 字符流 sys log sed inpu pre 取数 put
File file=new File("F:\\米来\\Html\\ceshi.txt"); InputStream inputStream=null; OutputStream outStream=null; inputStream=System.in; outStream=new FileOutputStream(file); byte[] buf=new byte[1024]; int result=0; if((result=inputStream.read(buf))>0) { outStream.write(buf); outStream.flush(); } inputStream.close(); outStream.close();
标签:ges 字符流 sys log sed inpu pre 取数 put
原文地址:http://www.cnblogs.com/liandy0906/p/6804320.html