TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
int FileOpenHistory ( string  filename,
int  mode,
char  delimiter = ';' 
)

Opens file in the current history directory

Parameters
filenameFile name
modeFile open mode. Can be one or combination of values: FILE_BIN, FILE_CSV, FILE_READ, FILE_WRITE, FILE_SHARE_READ, FILE_SHARE_WRITE
delimiterDelimiter for csv files. By default, the ';' symbol will be passed
Returns
Returns the file handle for the opened file. If the function fails, the returned value is -1.
To get the detailed error information, call the GetLastError() function

FILE_SHARE_WRITE and FILE_SHARE_READ flags should explicitly be specified for shared use when opening files. If the flags are absent,
the file is opened in exclusive mode and cannot be opened by anyone else till it is closed by the user who opened it.