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:
string ativos[];
intOnInit()
{
ReadFileToArray("ativos.txt", ativos); // file located in the same folder as the .mq5 filereturn(INIT_SUCCEEDED);
}
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).
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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;