This question has already been answered:
- How to read a file into an array? 2 answers
The file contains two numbers, say 5 and 8, and then comes a two-dimensional matrix. How on the basis of these numbers, to count a certain number of characters of this matrix? Suppose in this case you need to consider a matrix of 5 by 8. And all that to skip after it