Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Function library for processing INI files. - MetaTrader 4 Library | MT4 EA Download - MetaTrader 4 Resources

author EAcpu | 5 reads | 0 comments |

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

Function library for processing INI files. Includes five functions for reading values ​​from INI files:
- ReadIniArrayInt();
- ReadIniBool();
- ReadIniDouble();
- ReadIniInteger();
- ReadIniString();
and five functions that write values ​​to INI files:
- WriteIniArrayInt();
- WriteIniBool();
- WriteIniDouble();
- WriteIniInteger();
-WriteIniString().
Therefore, there are five pairs of functions to read/write values ​​of type "Integer Array", "Boolean", "Double", "Integer" and "String".

Each function takes main parameters:
- FileName - full file name;
-SectionName-section name;
- KeyName - parameter name.

Use the WinAPI functions in the kernel32.dll module:
- GetPrivateProfileStringA();
- WritePrivateProfileStringA().


Attachment download

📎IniFiles.mqh (10.82 KB)

Source: MQL5 #7067

Verification code Refresh