Read csv file rather than manually updating the array