标题:[求助]怎么样修改
取消只看楼主
qq78141804
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2006-1-4
 问题点数:0 回复次数:2 
[求助]怎么样修改
import java.io.*;
public class IOStreamDemo2 {
public static void main (String args[]) {
int b;
try {
BufferedInputStream in =
new BufferedInputStream(
new FileInputStream("input.txt"));
FileOutputStream out =
new FileOutputStream("output.txt",true);
while ((b=in.read()) !=-1)
out.write(b);
in.close();
out.close();
}catch(FileNotFoundException e) {
System.out.println("File Not Found.");
}catch (IOException e) {
System.out.println("IO Exception");
}finally { }
}
}
如果我要把input文件复制到别的地方要怎么修改?
谢谢帮忙!
2006-01-05 20:13
qq78141804
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2006-1-4
得分:0 

那假如我要实现这个功能该怎么写?我不会,能给个具体的不?

2006-01-05 20:42
qq78141804
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2006-1-4
得分:0 
谢谢你啊
2006-01-05 21:51



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-41778-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.732244 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved