?? iotest.java
字號:
package ch07.section01;
import java.io.*;
public class ioTest {
String s_FileName = "c:/test.txt";
String s_DFileName = "c:/test1.txt";
try {
//定義輸入流
FileInputStream fis =
new FileInputStream(s_FileName);
BufferedInputStream bis =
new BufferedInputStream(fis);
//定義輸出流
FileOutputStream fos =
new FileOutputStream(s_DFileName);
BufferedOutputStream bos =
new BufferedOutputStream(fos);
DataOutputStream dos =
new DataOutputStream(bos);
int b;
while ( (b = bis.read()) != -1) {
dos.write(b);
}
bis.close();
dos.close();
}
catch (IOException e) {
System.err.println(e);
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -