Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a Ini file like this -

MyFile.ini

[Google]
url=www.google.com
[Yahoo]
url=www.yahaoo.com
[Bing]
url=www.bing.com

I wanna load all Ini section to listbox1 like -
Google
Yahoo
Bing

how i can do this?
Posted
Comments
Richard MacCutchan 27-Dec-13 11:07am    
Read each item, if it is a name enclosed in [] then add it to the listbox.

1 solution

There is even a CodeProject article, An INI file handling class using C#[^], to help you.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 27-Dec-13 12:38pm    
Sure, a 5.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900