public class TestFileInputStream { public static void main(String [] args) { //读取指定文件中内容,并在控制台输出 FileInputStream fis = null; byte[] b = new byte[1024]; int len = 0; try { fis = new FileInputStream("E:\\javafile\\ja.txt"); while((len = fis.read(b
IOUtils.getStringFromReader() 读取方式为最快的 InputStream in = null; String line = ""; long start=0,end=0; try { start = System.currentTimeMillis(); in = new FileInputStream(new File("D://1.txt")); InputStreamReader stream = new InputStreamRe