Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading everything from an ini file to a ListBox

Status
Not open for further replies.

fergmj

Programmer
Feb 21, 2001
276
US
I want to read everything from an ini file to a ListBox.

I can't use ReadSection, ReadSections or ReadSectionValues because they give me just the section, the key or the values in each string. i want all three at the same time.

Anyone know how I can do this?

I just want to load the contents of C:\test.ini into ListBox1

Thanks.

Mindy
 
Greetings!

Try this:
ListBox1->Items->LoadFromFile();

and then you may use next properties to reading content of ini file:
name=ListBox1->Items->Names;
ListBox1->Items->Values[name];
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top