OutOfMemory? With an huge array how I can avoid it?
In runtime i got the OutOfMemoryError (or exception... I don't remember) when bulding an huge array... So i would like to know which dimension has usually the heap memory, if it depends from the machine you're using, and how i can avoid that error, without creating a List...
I need the array to create a simple program for school wich will split a file in n parts, so I need to use an array of bytesn but if the file bigger than about 50mb it appears the OutOfMemory above...
Any suggestions accepted (you'll see i'm a newbie), Thanks

