Impossible write/read a file in TERMINAL_COMMONDATA_PATH
Impossible write/read a file with CommonPath=TerminalInfoString(TERMINAL_COMMONDATA_PATH); I use correctly FileOpen(CommonPath+filename,......
Please show your code, or follow this
https://www.mql5.com/en/articles/2720#z0
They recommend
int h=FileOpen("test.txt",FILE_READ|FILE_ANSI|FILE_TXT);
- www.mql5.com
Thanks for the answer.
I found the solution:
filehandle=FileOpen(filename,FILE_WRITE|FILE_COMMON)
You incorrectly used FileOpen. You do not put paths!
File Write Problem (Error: 5002) - Expert Advisors and Automated Trading - MQL5 programming forum #1-2 (2020)
and FolderDelete using TERMINAL_DATA_PATH - General - MQL5 programming forum (2017)
Creation date of Indicator - Expert Advisors and Automated Trading - MQL5 programming forum (2021.05.12)