Download MetaTrader 5

Create/Write File (Txt/Cvs) Error 5002: Failed to Open

To add comments, please log in or register
c0ntr0x
81
c0ntr0x  

Got it ty u very mutch :)

whroeder1
15331
whroeder1  
  int file_handle=FileOpen(TerminalInfoString(TERMINAL_DATA_PATH)+ InpDirectoryName + "//"+InpFileName,FILE_READ|FILE_WRITE|FILE_CSV);
  1. FileOpen - MQL4 Documentation "The name of the file can contain subfolders" File open already has the data path to the files directory.
  2. Only one slash separates directories
c0ntr0x
81
c0ntr0x  

Got it ty u very mutch :)

whroeder1
15331
whroeder1  
4XNZ: Something must have changed.
If it had changed then it would have worked, but it doesn't work so nothing has changed.
To add comments, please log in or register