Reads the specified number of bytes from the stream, starting from a specified point in the byte array.
The number of bytes read into buffer. This might be less than the number of bytes requested if that many bytes are not available, or it might be zero if the end of the stream is reached.
System.IO.BinaryReader does not restore the file position after an unsuccessful read operation.
For a list of common I/O tasks, see Common I/O Tasks.