public class SequenceInputStream
extends InputStream
A SequenceInputStream represents the logical concatenation of other input streams. It starts out with an ordered collection of input streams and reads from the first one until end of file is reached, whereupon it reads from the second one, and so on, until end of file is reached on the last of the contained input streams. 

解决方案 »

  1.   

    try {//建立到文件file的FileReader流,该文件通过File类和对话框来确定
                            File file=new File(filedialog_load.getDirectory(),filedialog_load.getFile());
               file_reader=new FileReader(file);
               in=new BufferedReader(file_reader);
               while((s=in.readLine())!=null)
               text.append(s+'\n'); 
              }