moneykrishna / Publications
Forum
Unable to open file - Always showing 5002 error
void OnTick () { string filename = TerminalInfoString ( TERMINAL_DATA_PATH ) + "\\MQL5\\Files\\example.ini" ; int file_handle = FileOpen (filename, 1 ); if (file_handle == INVALID_HANDLE ) { Comment ( "Failed to open file: " + filename + GetLastError ());