I have a large file of 45MB, and suppose the memory available to me is limited and I want to read 5MB first and so on. 

I need to do this using Java. Somebody please help me out.

Thanks in advance!!