views:

55

answers:

1

I have a file with the structure like so: http://gamedev.pastebin.com/8iESYTVY
but it's much bigger in size, 233MB, how can I read blocks of lines, enough lines to
represent 10MB, into memory so I won't have to read in the whole file?

+1  A: 

You could use Java nio, which allow random access to a file. Or, in other words, allows mapping a file to memory, allowing your Java program to access it permanently at random locations.

Riduidel