The file should contain a matrix in the format such as
2 41 1 1 11 2 3 4
The first two numbers are the numbers of rows and columns.