• Post Reply Bookmark Topic Watch Topic
  • New Topic

buffer reader size problem  RSS feed

 
mohammad shadab
Ranch Hand
Posts: 54
Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a text file i want to read that file line by line i am using bufferreader .but its not able to read that file .its reading after leaving starting 1200 lines whereas total lines are 2972 .i also set bufferreader size upto 15. but its not working please give suggestion...
 
Greg Charles
Sheriff
Posts: 3014
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mohammad,

Can you show us the code where you open the reader and read the file? Also, when it stops working, is there any exception, or does it just say there is nothing more to read? I can say that 15 is too small for the size. 1000 or 2000 would be more reasonable. I don't think a small buffer would break anything though, just make the reading slower than it needs to be.
 
mohammad shadab
Ranch Hand
Posts: 54
Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greg Charles wrote:Hi Mohammad,

Can you show us the code where you open the reader and read the file? Also, when it stops working, is there any exception, or does it just say there is nothing more to read? I can say that 15 is too small for the size. 1000 or 2000 would be more reasonable. I don't think a small buffer would break anything though, just make the reading slower than it needs to be.

thank you.....
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!