How to read the ini file?

i’m writing a plugin,

i want load the ini file to my TArray ButtonNameList

this’s my ToolbarSetting.ini:

230049-2.png

230048-1.png

You can try this How to store variables to a custom .ini file? - Editor Scripting - Unreal Engine Forums

I‘m trying

this’s my code:

FString ConfigFilePath = IPluginManager::Get().FindPlugin("AresExpand")->GetBaseDir() / TEXT("Config") / TEXT("ToolbarSetting.ini");
	GConfig->GetArray(TEXT("ToolbarButtonList"), TEXT("ButtonNameList"), g_ButtonNameList, ConfigFilePath);

it work. thank you.