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

c++, fileparse, ini, winapi

Solution

You can use the Windows API functions, such as GetPrivateProfileString() and GetPrivateProfileInt().

Problem

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?

Original source