OK. Just create a nested for loop. The internal for loop will fill rows, and the outer will fill columns... or whatever you wanna do. As long as you haven't reached eof, you read in an integer and store it into the current slot in the array.
1 2 3 4 5 6 7 8
int matrix [4][4];
for (int row = 0; row < 4; row++)
{
for (int col = 0; col < 4; col++)
{
file >> matrix[row][col];
}
}
Something like that. That code presumes you will not reach eof which is a... risky... assumption to make. But I'm sure you know how to detect eof, right?