FileOpen with absolute path?! - page 2

 
WindmillMQL: Why do you use double backslashes in the path? And why do you precede the file name with double backslash? FileOpen("Yolo.csv",...) should work just fine.
  1. Because a backslash is the escape character. Language Basics / Data Types / String Type - Reference on algorithmic/automated trading language for MetaTrader 5
  2. Because he was trying to do the impossible; open "path\filename".
 
William Roeder:
  1. Because a backslash is the escape character. Language Basics / Data Types / String Type - Reference on algorithmic/automated trading language for MetaTrader 5
  2. Because he was trying to do the impossible; open "path\filename".
Oh yes, now I see. Thanks.
 
Amirfakhredin Ghanbari:

darn at last found why its not working

there is no need for TerminalInfoString function


just add flag of 

to FileOpen it automatically read/write file in common folder


i hope save other people time this as well 

tnX everyone trying to help me out

Brilliant! Thanks for this!

 
Amirfakhredin Ghanbari:

darn at last found why its not working

there is no need for TerminalInfoString function


just add flag of 

to FileOpen it automatically read/write file in common folder


i hope save other people time this as well 

tnX everyone trying to help me out

Thanks!! This saved me alot of stress!!