?? seqtest.java
字號:
import java.io.*;
public class SeqTest{
public static void main(String args[]){
FileInputStream fileStream1,fileStream2;
try
{
String allStr;
fileStream1 = new FileInputStream("test1.txt");
fileStream2 = new FileInputStream("test2.txt");
SequenceInputStream seqStream = new SequenceInputStream(fileStream1,fileStream2);
byte[] bufByte = new byte[1024];
while(seqStream.read(bufByte,0,1024)!=-1)
{
String tempStr = new String(bufByte);
System.out.println(tempStr);
}
}catch(FileNotFoundException e)
{
System.out.println("File not found or no permission.");
}catch(IOException e)
{
System.out.println("error:"+e);
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -