Impossible write/read a file in TERMINAL_COMMONDATA_PATH

snatoli
111
Impossible write/read a file  with CommonPath=TerminalInfoString(TERMINAL_COMMONDATA_PATH); I use correctly FileOpen(CommonPath+filename,......
R4tna C
413
R4tna C  
snatoli:
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);
MQL5 Programming Basics: Files
MQL5 Programming Basics: Files
  • www.mql5.com
This practice-oriented article focuses on working with files in MQL5. It offers a number of simple tasks allowing you to grasp the basics and hone your skills.
snatoli
111
snatoli  

Thanks for the answer.

I found the solution:

filehandle=FileOpen(filename,FILE_WRITE|FILE_COMMON)