The INI header-only library for Modern C++ supports reading and writing, even writing comments. It is cross-platform and can be used on multiple operating systems.
Thank you to dujingning for providing such a pure header file for the ini library. Upon testing, it was found that the normal reading functionality works well. However, when the ini file specified in the preset path does not exist or contains errors, the program does not output an error message. Additionally, when data is missing, attempting to convert it to an int type defaults to outputting 0 (which may depend on the author's definition). In such cases, if developers do not notice this and do not perform error handling, it may lead to unexpected errors in programs using this library.