怎么叫一下取出来,用流读不可以吗?

解决方案 »

  1.   

    我现有一个文件,我想的把文件中的内容取出来,我想在取文件的效率上能有一个好的效率结果,谢谢
      

  2.   

    File f=new File("aaa.txt");
              FileInputStream fis=new FileInputStream(f);
              byte by[]=fis.read((int)f.length());
              //the byte by is you need the result.