Ogre::ConfigFile cfg; cfg.load("config.cfg"); Ogre::ConfigFile::SectionIterator seci = cfg.getSectionIterator("Materials"); while(seci.hasMoreElements()) { Ogre::ConfigFile::SettingsMultiMap* settings = seci.getNext(); Ogre::ConfigFile::SettingsMultiMap::iterator i; for(i = settings->begin(); i != settings->end(); ++i) { Ogre::String key = i->first; Ogre::String value = i->second; std::cout << "Key: " << key << " Value: " << value << std::endl; } }This code retrieves all the elements in the "Materials" section and prints their keys and values. The package library for cpp ogre.configfile is Ogre3D.