Here's what I'd do:
Start over.
Step 1) Read that link I posted.
Step 2) Read the data into the arrays. As soon as you put a line into the array, write the array entry to the screen. Think about the loop and when it should end. Refer to Step 1.
When done reading:
Step 3) In a loop display the entire contents of the arrays. Make sure things were read in and stored properly.
When all that works completely, continue to the next step.
It will also help greatly if you format your code better.