The function writes the value of the int parameter to a bin-file, starting from the current position of the file pointer.
[in] File descriptor returned by FileOpen().
[in] Integer value.
[in] Number of bytes (up to 4 inclusive), that should be written. The corresponding constants are provided: CHAR_VALUE=1, SHORT_VALUE=2 and INT_VALUE=4, so the function can write the integer value of char, uchar, short, ushort, int, or uint type.
If successful the function returns the number of bytes written. The file pointer is shifted by the same number of bytes.