listbox to .ini file

hi guys,

i am looking to save the items that i have in my listbox to a specified in file.
i have already done this with my textboxes and it has worked fine, but when it comes to my listbox and multiline stuff, my program doesnt want to compile.

here is some code that i have worked on.

if(listBox1->Items->Count>0)
{
IniFile ^iniFile = gcnew IniFile("C:\\.......");
iniFile->writeSection("Options", "Startfile", "D:\\Sknkknk.......");

IniFile ^iniFile1 = gcnew IniFile("D:\\Student\\sdjf\\Data.ini");
//creates the address in which the ini file will need to write

for(int i=0; listBox1->Items->Count-1; i++)
{

iniFile1->WriteSection("Last Variables", "listBox1_Items" + i.ToString(), listBox1->Items[i], L"D:\\Student\\sdjf\\Data.ini");
}

i get the following error regarding the above code.
error C2039: 'WriteSection' : is not a member of 'IniFileHandling::IniFile'
Topic archived. No new replies allowed.