This script helps you convert literal ints inside of a file to numerical ones inside of an usable array. The file must be written like this:
two one four
eight one six
one
zero zero one zero
I've provided a file ("test.txt") you can use to test the program.