Writes into a bin-file contents of a structure passed as a parameter, starting from the current position of the file pointer.
- Template Parameters
-
T | Type of a structure to read into |
- Parameters
-
file_handle | File descriptor returned by FileOpen() |
struct_object | struct variable of type T |
size | Number of bytes that you want to record. If size is not specified or the specified number of bytes is greater
than the size of the structure, the entire structure is written |
- Returns
- If successful the function returns the number of bytes written or 0 in case of error.
If successful, the number of bytes written corresponds to the size of the structure.
To obtain information about the error call the GetLastError() function. The file pointer is shifted by the same number of bytes.