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 store in the file. The first three entries corresponds to the integers in the first row of the matrix, and so on.