read csv file into an array