A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

本帖最后由 guowei 于 2016-6-30 19:51 编辑

FileInputStream fis=new FileInputStream("d:\\123.txt");
FileOutputStream fos=new FileOutputStream("e:\\00.txt");
byte b[] = new byte[1024*8];
int a;
while((a=fis.read())!=-1){
fos.write(b,0,a);
}

0 个回复

您需要登录后才可以回帖 登录 | 加入黑马