requirement was that it had to read the lines of the file into an array.

Duhh. Guess I should learn to read