Reading INI Files
Can anyone help me how to read an .INI Files?
is there any special function to do it?
as far as I know at VB6, there is an API function to read this File (.INI).
Regars,
Mr. TOLIL
(Newbie in .NET)
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
kovanRank #1,453 · 1.1K pointsPosted Jan 28, 2004, 6:53 PM EST
henry_gogogo17 pointsPosted Feb 16, 2004, 7:29 AM EST
URIscorey13 pointsPosted Apr 2, 2004, 8:42 AM EST
Moses Spencer20 pointsPosted Mar 24, 2015, 12:32 AM EDT
You can also use the approach mentioned by URIscorey, for example here is how you can read and deserialize the ini file's content:
' Load INI file. Dim ini As New IniFile() ini.Load("your-ini-file.ini") ' Create your object from INI file's content. Dim mySettingsObject = ini.Sections(0).Deserialize(Of CustomClass)()