博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
IO流的标准处理代码
阅读量:4515 次
发布时间:2019-06-08

本文共 361 字,大约阅读时间需要 1 分钟。

FileInputStream fis = null;FileOutputStream fos = null;try {  fis = new FileInputStream("aaa.txt");  fos = new FileOutputStream("bbb.txt");  int b;  while((b = fis.read()) != -1) {    fos.write(b);  }  } finally {  try {    if(fis != null)      fis.close();  }finally {    if(fos != null)    fos.close();  }}

 

转载于:https://www.cnblogs.com/loaderman/p/6407667.html

你可能感兴趣的文章
[Win8.1系统]双系统
查看>>
HDU 3899 树形DP
查看>>
继承上机作业
查看>>
设计模式 4/23 建造者模式
查看>>
Logging in Java
查看>>
leetcode算法:Distribute Candies
查看>>
机器学习之路: python 朴素贝叶斯分类器 MultinomialNB 预测新闻类别
查看>>
LINUX 忘记root密码
查看>>
json转换成Map
查看>>
MySQL查看当前用户、存储引擎、日志
查看>>
tpcc-mysql 系列二:进行TPCC测试
查看>>
将16进制的颜色值变成UIColor
查看>>
[转]magento 2 modes – 每种模式的特点及如何切换(翻译)
查看>>
求n的阶乘【VB代码实现】
查看>>
VSCode(Visual Studio Code) 自用插件
查看>>
NOIp2016纪录[那些我所追求的]
查看>>
(VB)定时更换(IE)代理IP(代理轮换)
查看>>
Node.js HTTP Server对象及GET、POST请求
查看>>
LintCode Coins in a Line
查看>>
[题解]POJ 3207 Ikki's Story IV - Panda's Trick
查看>>