Error
- 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.
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!