FileOpenHistory(

 

Hello freinds,

 

At MQL4 I hade FileOpenHistory(...),

and I changed it to:

FileOpen(C:\Program Files\Fxglobe ECN Metatrader 5.0\Bases\GoForex-Demo\history\...),

 

The compiler's response is:

many of: '\' - illegal escape sequence

 

What should I do:
 

 
crossy:

Hello freinds,

 

At MQL4 I hade FileOpenHistory(...),

and I changed it to:

FileOpen(C:\Program Files\Fxglobe ECN Metatrader 5.0\Bases\GoForex-Demo\history\...),

 

The compiler's response is:

many of: '\' - illegal escape sequence

 

What should I do:
 

 

Try replacing all \ with \\.
 
crossy:

 

What should I do:

You should read documentation https://www.mql5.com/en/docs/files
Documentation on MQL5: File Functions
  • www.mql5.com
File Functions - Documentation on MQL5
 
stringo:
You should read documentation https://www.mql5.com/en/docs/files
crossy: just like stringo has suggested, check the documentation. In https://www.mql5.com/en/docs/files/fileopen you can see an example code where you have \\ in the paths, not \.
Documentation on MQL5: File Functions / FileOpen
  • www.mql5.com
File Functions / FileOpen - Documentation on MQL5
 
And don`t forget double quotes

 
mql5:
And don`t forget double quotes

Thank you freinds.
Reason: