Click here to Skip to main content
15,903,385 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello all,

how can i read the data from an ini file in vb.net?

this is my ini file:

[connection]
Data Source=localhost
initial Catalog=Test
Integrated Security=true

thank you :)
Posted

how-to-read-from-ini-file.html[^]

Check this link apart from the links provided above..
 
Share this answer
 
Comments
Mario Z 13-Mar-15 15:33pm    
This is not a good solution, it uses a terrible and an obsolete COM API.
Instead I would recommend using any managed .NET library, there are few of them (some are listed in 'Solution 1'), you can easily find them on NuGet by looking at INI tag.
Also if anyone is interested, here is my C# implementation of INI file library.

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