Matrices are stored in row-major order. In this documentation brackets are used to indicate a matrix. Hence, integer[3][4] means that 12 integers representing a matrix are stored in the file. The first four entries correspond to the integers in the first row of the matrix, and so on.