Hi everybody,
I've read the MQL5 documentation about FileOpen function and in the examples it's always specified a relative path (starting from c:\Program Files\MetaTrader 5 Terminal\Tester\Agent-127.0.0.1-3000\MQL5\Files\ folder).
Do you know if it is possible to specify an absolute file path and writing for example in C:\Temp\log.txt?
I've tried specifing path in this way but none of the following invocations works; "h" variable is always -1 :(
int h = FileOpen("C:\\Temp\\log.csv", FILE_WRITE|FILE_UNICODE|FILE_CSV);
int h = FileOpen("C://Temp//log.csv", FILE_WRITE|FILE_UNICODE|FILE_CSV);
int h = FileOpen("C:/Temp/log.csv", FILE_WRITE|FILE_UNICODE|FILE_CSV);
Thanks in advance :)
- FileOpen issue
- Is the File Name Wrong?
- export stop price in Excel
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register