C# Класс ARCed.Helpers.Ini

Static class for reading/writing .ini files.
Показать файл Открыть проект

Открытые методы

Метод Описание
Load ( string filename ) : bool

Prepares the file to be read by the parser

ReadFloat ( string section, string key ) : float

Returns a float value read from the file

ReadInteger ( string section, string key ) : int

Returns an integer value read from the file

ReadString ( string section, string key ) : string

Returns a string value read from the file

ReadStringSplit ( string section, string key, char separator ) : string[]

Returns an array of values from splitting a string

Write ( string section, string key, string value ) : void

Writes a value to the .ini file

Описание методов

Load() публичный статический Метод

Prepares the file to be read by the parser
public static Load ( string filename ) : bool
filename string The path to be parsed
Результат bool

ReadFloat() публичный статический Метод

Returns a float value read from the file
public static ReadFloat ( string section, string key ) : float
section string The section of the .ini file
key string A key name in the .ini file
Результат float

ReadInteger() публичный статический Метод

Returns an integer value read from the file
public static ReadInteger ( string section, string key ) : int
section string The section of the .ini file
key string A key name in the .ini file
Результат int

ReadString() публичный статический Метод

Returns a string value read from the file
public static ReadString ( string section, string key ) : string
section string The section of the .ini file
key string A key name in the .ini file
Результат string

ReadStringSplit() публичный статический Метод

Returns an array of values from splitting a string
public static ReadStringSplit ( string section, string key, char separator ) : string[]
section string The section of the .ini file
key string A key name in the .ini file
separator char The separator string used for splitting
Результат string[]

Write() публичный статический Метод

Writes a value to the .ini file
public static Write ( string section, string key, string value ) : void
section string The section of the .ini file
key string A key name in the .ini file
value string The value to write
Результат void