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.
handle | File descriptor returned by FileOpen() |
value | String value |
size | The 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. |