You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/usage/INIConfigIO.md
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,21 +15,26 @@ INIConfigIO iniFile = new INIConfigIO("file.ini");
15
15
16
16
Instance functions help in reading and writing the INI file:
17
17
18
+
19
+
18
20
**Clear()* - Clears the in-memory data but does not effect the file till it is saved.
19
21
**SaveFile()* - Saves the in-memory data into the given file.
22
+
23
+
24
+
* IEnumerable<string> *GetSectionNames()* - Gets all the section names present in the file.
20
25
21
-
**IEnumerable*<*string*> *GetSectionNames()* - Gets all the section names present in the file.
22
-
*
23
-
**string**GetString* (string *key*, string *defaultValue* = "") - Gets a value as a string, default value is returned when the key is not present in the file.
24
-
**int**GetInteger* (string *key*, int *defaultValue* = -1) - Gets a value as an integer, default value is returned when the key is not present in the file.
25
-
**float**GetFloat* (string *key*, float *defaultValue* = 0) - Gets a value as a float, default value is returned when the key is not present in the file.
26
-
**double**GetDouble* (string *key*, double *defaultValue* = 0) - Gets a value as a double, default value is returned when the key is not present in the file.
27
-
26
+
* string *GetString* (string *key*, string *defaultValue* = "") - Gets a value as a string, default value is returned when the key is not present in the file.
27
+
* int *GetInteger* (string *key*, int *defaultValue* = -1) - Gets a value as an integer, default value is returned when the key is not present in the file.
28
+
* float *GetFloat* (string *key*, float *defaultValue* = 0) - Gets a value as a float, default value is returned when the key is not present in the file.
29
+
* double *GetDouble* (string *key*, double *defaultValue* = 0) - Gets a value as a double, default value is returned when the key is not present in the file.
30
+
31
+
28
32
**SetString* (string *key*, string *value*) - Sets specified key's value to the given value
29
33
**SetInteger* (string *key*, int *value*) - Sets specified key's value to the given value
30
34
**SetFloat* (string *key*, float *value*) - Sets specified key's value to the given value
31
35
**SetDouble* (string *key*, double *value*) - Sets specified key's value to the given value
0 commit comments