- 0
- 0
- 约2.25万字
- 约 67页
- 2018-03-27 发布于浙江
- 举报
[工学]java07
* FileInputStream from = null; FileOutputStream to = null; try { from = new FileInputStream(fromFile); to = new FileOutputStream(toFile); byte[] buffer = new byte[4096]; int bytes_read; while ( (bytes_read = from.read(buffer)) != -1) { to.write(buffer, 0, bytes_read); } return true; } catch (IOException e) { return false; } finally { if (from != null) { try { from.close(); } catch (IOException e) { } } if (to != null) { try { to.close();
原创力文档

文档评论(0)