System Requirements
.net >= 3.5

Example INI File
[DEFAULT]
account = esr

[python]
directory = /home/esr/cvs/python/
developer = 1

[sng]
directory = /home/esr/WWW/sng/
numeric_id = 1012
developer = 1

[fetchmail]
numeric_id = 18364

[py-howto]
account = eric
directory = /home/esr/cvs/py-howto/
developer = 1


Creating an Instace
Dim myINI As New INI( Configuration.INI_Config.DefaultConfig, " < File Path to Ini> ")

Reading a Section Parameter's Value
Console.WriteLine(myINI("sng")("developer").Value)
' Change developer to 3
myINI("sng")("developer").Value=3


Loading
Dim myIni As New INI(DefaultConfig, My.Application.Info.DirectoryPath & "\Examples\Example.ini")

Saving
In same file as one used in loading.
myIni.Save()
Save ini into a named location.
myIni.Save( My.Application.Info.DirectoryPath & "\Examples\Example.ini" )

Creating

Example
  Dim AnotherIni As New INI(DefaultConfig)
  ' Add a Section:  A  with parameter  A1 , A2 & A3
  AnotherIni.AddSectionWithParameters("A").AddParameter("A1").AddParameter("A2").AddParameter("A3")
  ' Add Sections: B, C, D
  AnotherIni.AddSection("B").AddSection("C").AddSection("D")


INI File Api
INI Section Api

Last edited Feb 6, 2010 at 2:52 PM by AdamSpeight2008, version 7

Comments

d34dlym4n Oct 23, 2011 at 10:48 PM 
Hello I'm Asking About AddParameter i use it to make section and add new Parameter but the program can't add new one

my app add new Section Without Parameter

i use it like this wat

dim ini as new ini(DefaultConfig,"D:\Set.ini")
ini.AddSectionWithParameters("Settings").AddParameter("F").AddParameter("S").AddParameter("R")

and the app add Just Settings Section

Can Any One Help Me :)

and Thanks