阅读背景:

使用BufferedReader.readLine()读取文本文件太慢了

来源:互联网 

I am trying to read a text file which contains about 1000 very long lines. Entire file stands at about 1.4MB. I am using BufferedReader's readLine method to read file. What happens is it takes 8-10 seconds to print the output on console. I tried the same using fgets of php and it prints all the same lines in blink of an eye!!! How is it possible? Below is the code I am usingI am trying to read a text file which contains




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: