simplifies reading the file directly into an array of ints