Read all ini file values with GetPrivateProfileString

前端 未结 5 1921
轮回少年
轮回少年 2020-12-30 08:04

I need a way to read all sections/keys of ini file in a StringBuilder variable:

[DllImport(\"kernel32.dll\")]
private static extern int GetPrivateProfileStri         


        
5条回答
  •  清歌不尽
    2020-12-30 08:33

    I believe there's also GetPrivateProfileSection() that could help, but I agree with Zenwalker, there are libraries that could help with this. INI files aren't that hard to read: sections, key/value and comments is pretty much it.

提交回复
热议问题