string _DirectoryPath = TerminalInfoString(TERMINAL_DATA_PATH); string _DirectorySub = "\\MQL4\\Experts\\Notes\\"; ⋮ FileOpen(_DirectoryPath+_DirectorySub+_FileName, …
You are trying to write to C:\Users\«username»\AppData\Roaming\MetaQuotes\Terminal\«hexString»\MQL4\Files\C:\Users\«username»\AppData\Roaming\MetaQuotes\Terminal\«hexString»\MQL4\Experts\Notes\«fileName» which is an invalid path (colon.)
Perhaps you should read the manual.
and FolderDelete using TERMINAL_DATA_PATH - General - MQL5 programming forum 2017.12.13
You are trying to write a file to a directory which is not allowed. Only certain directories predefined by MQL4/5 are allowed.
Read this page of the manual: https://www.mql5.com/en/docs/files

- www.mql5.com
You are trying to write a file to a directory which is not allowed. Only certain directories predefined by MQL4/5 are allowed.
Read this page of the manual: https://www.mql5.com/en/docs/files

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello Folks,
I'm very new to MQL programming.
I just start coding to write LAST TRADED PRICE in external text file. All my effort are failed.
Below is my code. Can anyone please correct my code.
Thanks in advance.