Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 4 Libraries | Library of functions for working with INI-files.

MetaTrader Experts, Indicators, Scripts and Libraries

Library of functions for working with INI-files. Includes five functions for reading values from an INI-file:
     - ReadIniArrayInt();
     - ReadIniBool();
     - ReadIniDouble();
     - ReadIniInteger();
     - ReadIniString();
and five functions for writing the values to an INI-file:
     - WriteIniArrayInt();
     - WriteIniBool();
     - WriteIniDouble();
     - WriteIniInteger();
     - WriteIniString().
Thus, there are five pairs of functions to read/write the values of 'integer array', 'boolean', 'double', 'integer' and 'string' types.

Each of these functions takes the main parameters:
     - FileName - full file name;
     - SectionName - section name;
     - KeyName - parameter name.

Uses the WinAPI functions from the kernel32.dll module:
     - GetPrivateProfileStringA();
     - WritePrivateProfileStringA().

7067

Best MetaTrader Indicators + Profitable Expert Advisors