On mac os, FileOpen works if the FILE_COMMON flag is specified

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
I'm working on an EA that needs to read files that other python scripts are creating on my machine. I've changed from Windows to Mac and been running MetaTrader5 on Parallels Desktop with no problem until now..
I was running the same script in my windows machine and everything was ok..
Here's the code that I was using for reading a file to an array:
And then
I also tried opening the same file but at /Users/wilson/Documents and had the same error (#5004, I've already read the documentation but couldn't understand why the error was raised).
Any ideas in how to resolve this issue?
Cheers;