It helps us if you will copy and post the contents of the console when you run your program so we can see the error messages or output.
It also helps if you CODE formatting for your program. See buttons below text input area.
In your program, you are mixing two input methods. One is the br.readLine() and the other is file.read(). Why is that?
To read strings, the br.readLine() is a good way.
Get rid of the other code and process what is read by br.readLine();
Have you read the
doc for the readLine() method?
Does it return a value? What does your program do with that value?
Nothing that I can see.
You need to save what is read in a variable:
will read a line from the file into rec.
Then you can put rec into the array.