- If it's in the files folder, not a sub-folder of files, you only use the name.ext. Make sure that is exactly where it is, by opening Files → Open Data Folder, and has no typos.
-
if (cnt >= ArraySize (Linhas)) { ArrayResize (Linhas, ArraySize (Linhas) + 1024 );
You are resizing the array to its current size, not cnt+1.
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
Good afternoon!
I got this code from the MT5 documentation examples:
The problem is that regardless of the text placed in the file name, error 5004 (ERR_CANNOT_OPEN_FILE) always returns.
The file is in the Files folder within the MT5 folder.
I've tried "\\ Files \ ListagemVolumes.txt", "\ Files \ ListagemVolumes.txt", "Files \ ListagemVolumes.txt", "Files / ListagemVolumes.txt" and "ListagemVolumes.txt"
Where's the error?
Thank you for your help!