TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
int FileWriteString ( int  handle,
string  value,
int  size 
)

Writes the value of a string-type parameter into a BIN, CSV or TXT file starting from the current position of the file pointer.
When writing to a CSV or TXT file: if there is a symbol in the string '
' (LF) without previous character '' (CR),
then before '
' the missing '' is added.

Parameters
handleFile descriptor returned by FileOpen()
valueString value
sizeThe number of characters that you want to write. This option is needed for writing a string into a BIN file.
If the size is not specified, then the entire string without the trailer 0 is written. If you specify a size smaller than the length
of the string, then a part of the string without the trailer 0 is written. If you specify a size greater than the length of the string,
the string is filled by the appropriate number of zeros. For files of CSV and TXT type, this parameter is ignored and the string is written entirely.
Returns
If successful the function returns the number of bytes written or 0 in case of error. To obtain information about the error call the GetLastError() function.
The file pointer is shifted by the same number of bytes.