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? 回答1: You can use the Windows API functions, such as GetPrivateProfileString() and GetPrivateProfileInt(). 回答2: If you need a cross-platform solution, try Boost's Program Options library. 回答3: I have never parsed ini files, so I can't be too specific