//在用SequenceInputStream连接两个文件中的内容时出现了问题,只有第一个文件的内容,后面的一个文件
//的内容没法读进去,JAVA菜鸟。求解 谢谢!import java.io.File;
import java.io.FileInputStream;
import java.io.SequenceInputStream;
public class TestSequence {
public static void main(String[] args) throws Exception {
FileInputStream fis1=null;
fis1=new FileInputStream(new File("d:/2.txt"));
FileInputStream fis2=null;
fis2=new FileInputStream(new File("d:/1.txt"));
SequenceInputStream seq = new SequenceInputStream(fis1, fis2);
byte[] b = new byte[20];
seq.read(b);
System.out.println(new String(b, 0, b.length));
seq.close();
}}