When I helped you out with this question in the performance category and noted that it should not be there I didn't mean open a new topic (
UseOneThreadPerQuestion).
I'm still assuming because you don't give us much information. I think you want something like this:
But with this approach you can end up with a partially filled array. Especially if the value of MAX_LINE_IN_FILE is high. You might want to consider an approach with something more flexible then an array such as an ArrayList