Hi,
I was wondering if I can possibly read the contents of a given no of lines in a file (say 500 out of 1000 lines) into an array in a single step ? I can use the BufferedReader's readLine() in a for loop. But, is there any way to copy the contents of a given number of lines from a file to an array in one call ?
-Bindu
I was wondering if I can possibly read the contents of a given no of lines in a file (say 500 out of 1000 lines) into an array in a single step ? I can use the BufferedReader's readLine() in a for loop. But, is there any way to copy the contents of a given number of lines from a file to an array in one call ?
-Bindu