|  | Home | Libraries | People | FAQ | More | 
boost::property_tree::ini_parser::read_ini
// In header: <boost/property_tree/ini_parser.hpp> template<typename Ptree> void read_ini(const std::string & filename, Ptree & pt, const std::locale & loc = std::locale());
Read INI from a the given file and translate it to a property tree.
| ![[Note]](../../../../../doc/src/images/note.png) | Note | 
|---|---|
| Clears existing contents of property tree. In case of error the property tree unmodified. | 
| Parameters: | 
 | ||||||
| Throws: | ini_parser_error In case of error deserializing the property tree. |