C# Class Global.IniFile

Create a New INI file to store or load data
Mostra file Open project: mti-rfid/RFID_Explorer

Public Properties

Property Type Description
path string

Public Methods

Method Description
IniFile ( string INIPath ) : System

INIFile Constructor.

IniWriteValue ( string Section, string Key, string Value ) : void

Write Data to the INI File

ReadBool ( string Section, string Ident, bool Default ) : bool
ReadInteger ( string Section, string Ident, UInt32 Default ) : UInt32
ReadInteger64 ( string Section, string Ident, UInt32 Default ) : System.UInt64
ReadString ( string Section, string Ident, string Default ) : string
WriteInteger ( string Section, string Ident, int Value ) : void
WriteString ( string Section, string Ident, string Value ) : void

Read Data Value From the Ini File

Private Methods

Method Description
GetPrivateProfileString ( string section, string key, string def, byte retVal, Int32 size, string filePath ) : UInt32
WritePrivateProfileString ( string section, string key, string val, string filePath ) : bool

Method Details

IniFile() public method

INIFile Constructor.
public IniFile ( string INIPath ) : System
INIPath string
return System

IniWriteValue() public method

Write Data to the INI File
public IniWriteValue ( string Section, string Key, string Value ) : void
Section string
Key string
Value string
return void

ReadBool() public method

public ReadBool ( string Section, string Ident, bool Default ) : bool
Section string
Ident string
Default bool
return bool

ReadInteger() public method

public ReadInteger ( string Section, string Ident, UInt32 Default ) : UInt32
Section string
Ident string
Default System.UInt32
return System.UInt32

ReadInteger64() public method

public ReadInteger64 ( string Section, string Ident, UInt32 Default ) : System.UInt64
Section string
Ident string
Default System.UInt32
return System.UInt64

ReadString() public method

public ReadString ( string Section, string Ident, string Default ) : string
Section string
Ident string
Default string
return string

WriteInteger() public method

public WriteInteger ( string Section, string Ident, int Value ) : void
Section string
Ident string
Value int
return void

WriteString() public method

Read Data Value From the Ini File
public WriteString ( string Section, string Ident, string Value ) : void
Section string
Ident string
Value string
return void

Property Details

path public_oe property

public string path
return string