Download MetaTrader 5

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

To add comments, please log in or register
How to earn at MQL5.community? Come and find out!
c0ntr0x
81
c0ntr0x 2014.07.15 22:11 

Got it ty u very mutch :)

whroeder1
14503
whroeder1 2014.07.15 22:44  
  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 2014.07.15 22:59  

Got it ty u very mutch :)

whroeder1
14503
whroeder1 2016.03.28 18:30  
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