TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
int FileWriteInteger ( int  handle,
int  value,
int  size 
)

Writes the value of the int parameter to a bin-file, starting from the current position of the file pointer

Parameters
handleFile descriptor returned by FileOpen()
valueInteger value
sizeNumber of bytes (up to 4 inclusive), that should be written. The corresponding constants are provided:
CHAR_VALUE, SHORT_VALUE and INT_VALUE, so the function can write the integer value of char, uchar, short, ushort, int, or uint type
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 data type size. To obtain information about the error call the GetLastError() function.
The file pointer is shifted by the same number of bytes.