Re: Getting file into an array of byte..



gbattine wrote:
String line = null;
while ((line = br.readLine()) != null) {

I would just introduce a counter:

String line = null;
int counter = 0;

while ((line = br.readLine())!=null && counter<10000){
...proces...
counter++;
}


.