#includeBrief Description: This code example shows how to retrieve three different values from the "Server" section of an INI file. The values retrieved are an integer, a string, and a boolean. Package Library: The package library used in this example is the "inifile" library.#include #include "inifile.h" using namespace std; int main() { CIniFile iniFile("config.ini"); if (iniFile.ReadFile()) { int port = iniFile.GetInt("Server", "Port", 8080); string ip = iniFile.GetString("Server", "IP", "localhost"); bool debug_mode = iniFile.GetBool("Server", "DebugMode", false); cout << "Port: " << port << endl; cout << "IP: " << ip << endl; cout << "Debug Mode: " << (debug_mode ? "true" : "false") << endl; } else { cerr << "Unable to open INI file." << endl; return EXIT_FAILURE; } return EXIT_SUCCESS; }