Gets file contents line by line into array