• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading a 300M file in Java the best way?  RSS feed

 
Alok Pota
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reading a 300M file in Java the best way?
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ummm... what are you going to do with it? In general, avoid trying to read th whole thing into memory at once. Try to process it as you read it, and don't store stuff in memory you don't need. How you do this really depends on what you need to do with the file...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!