Wrote function to take in file and format as 2D integer array