First post here, please bare with me.

My professor has 2 binary files of matrices on his course website. I must write code to manipulate these matrices etc. I have coded matrix operations before, so that is not the problem.

My problem is, I am unsure of how to read a binary file either found online or saved to my computer, and then once I have "read" this file, how I should then put this data into a 2 dimensional array or another form of storage. Perhaps the second part of the question may be self explanatory depending on how the reading of a binary file may work. Anyways, any and all comments are welcome, thanks in advance.

EDIT: Just realized I forgot to supply a piece of information. The first two numbers in the binary file are the number of rows and the number of columns, and all subsequent numbers are simply the elements of the matrix.