- www.mql5.com
I'm totally ok with usage of dll files specially when it's kernel32 from windows itself, however, there is a minor issue and that is if you want to write into C:\, windows permission system will become a problem, to compensate for that, if you don't want to change the permissions on windows root directory, you can use the local file address for the data folder's file subfolder.
This method tries to escape MT5 sandbox. It is not a complete solution, yet.
You are free to use whatever you like. Thanks.
I couldn't write or read the .ini ...
It gives a very "strange" message after running,
2022.02.17 11:57:40.146 Tester Experts\Folder 2021\Custom Robots\IniFile_test.ex5 not found
Note :
+ Compiles without errors
+ The file is in the yes folder, along with the other robots I created
*Conclusion
I need to read and write .ini files in the MQL5 version, I know that the MQL4 version allowed it,
unfortunately I'm stuck with this, I think I'm going to "do it by hand", as if it were an ordinary .txt file,
I don't understand why they removed these functions to work with .ini files.
Ass:
Carlos A.F.Silva - Systems Analyst (but I work professionally with Delphi, MQL5 I'm just starting)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
INI File:
A library to provide simple storage mechanism for expert advisors and indicators.
Library Functions
Sample File 'my_orders.ini'
Author: amrali