Method | Description | |
---|---|---|
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
|
public static Load ( string filename ) : bool | ||
filename | string | The path to be parsed |
return | bool |
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 |
return | float |
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 |
return | int |
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 |
return | 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 |
return | string[] |
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 |
return | void |