Search code examples
c++winapiinifileparse

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


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?


Solution

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