The function reads contents into a structure passed as a parameter from a binary-file, starting with the current position of the file pointer.
[in] File descriptor of an open bin-file.
[in] Number of bytes that should be read. If size is not specified or the indicated value is greater than the size of the structure, the exact size of the specified structure is used.
If successful the function returns the number of bytes read. File pointer is moved by the same number of bytes.
Example (the file obtained after using the example for FileWriteStruct function is used here)