C++ – the easiest way to parse an INI File in C++?

c++fileparseiniwinapi

I'm trying to parse an INI file using C++. Any tips on what is the best way to achieve this? Should I use the Windows API tools for INI file processing (with which I am totally unfamiliar), an open-source solution or attempt to parse it manually?

Best Solution

If you need a cross-platform solution, try Boost's Program Options library.