I have a text file with the following numbers:

1 2 3

4 5 6

How do I read each individual number into an array?

It needs to move along each row so read in 1, 2 and then 3 into a array of 6 integers.

Then move to the second row and read 4 5 and 6...

Thank You