read file into array.