INI file object (pure .NET implementation, no dependency to Windows' libraries)
More...
|
| IniFile (string FileName) |
| Create an instance of the IniFile object from the given INI file. The instance is read/write, with AutoSave set to true. More...
|
|
| IniFile (string FileName, bool AutoSave) |
| Create an instance of the IniFile object from the given INI file. The instance is read/write, using the specified AutoSave value. More...
|
|
| IniFile (string FileName, bool AutoSave, bool ReadOnly) |
| Create an instance of the IniFile object from the given INI file. The type of the instance depends on the parameters. More...
|
|
bool | Load () |
| (Re)load the content from the file
|
|
bool | SaveTo (string FileName) |
| Save the content to another INI file.
|
|
bool | SaveTo (string FileName, Encoding FileEncoding) |
| Save the content to another INI file.
|
|
bool | Save () |
| Save the file. Return false in case of error.
|
|
void | SaveEx () |
| Save the file. Throw an exception in case of error.
|
|
List< string > | GetSections () |
| Get the list of sections in the INI file. More...
|
|
string | ReadString (string Section, string Name, string Default="") |
| Read a string entry from the INI file.
|
|
int | ReadInteger (string Section, string Name, int Default=0) |
| Read an integer entry from the INI file.
|
|
bool | ReadBoolean (string Section, string Name, bool Default=false) |
| Read a boolean entry from the INI file.
|
|
bool | Erase (string Section, string Name) |
| Remove an entry from the INI file. More...
|
|
bool | Remove (string Section, string Name) |
| Remove an entry from the INI file.
|
|
bool | WriteName (string Section, string Name) |
| Write an empty entry into the INI file.
|
|
bool | WriteString (string Section, string Name, string Value) |
| Write a string entry into the INI file.
|
|
bool | WriteInteger (string Section, string Name, int Value) |
| Write an integer entry into the INI file.
|
|
bool | WriteBoolean (string Section, string Name, bool value) |
| Write a boolean entry into the INI file.
|
|
string [] | ReadSection (string Section, bool withAssociatedValues=false) |
| Return all the entries from a given section. More...
|
|
|
static IniFile | OpenReadOnly (string FileName) |
| Create an instance of the IniFile object for the given INI file. The instance is read only.
|
|
static IniFile | OpenReadOnly (string FileName, Encoding FileEncoding) |
| Create an instance of the IniFile object for the given INI file. The instance is read only.
|
|
static IniFile | OpenReadWrite (string FileName, bool AutoSave=false) |
| Create an instance of the IniFile object for the given INI file. The instance is read/write. More...
|
|
static IniFile | OpenReadWrite (string FileName, Encoding FileEncoding, bool AutoSave=false) |
| Create an instance of the IniFile object for the given INI file. The instance is read/write. More...
|
|
static IniFile | CreateFromText (string Text) |
| Create an instance of the IniFile object from a content already loaded in memory.
|
|
static IniFile | CreateFromLines (string[] Lines) |
| Create an instance of the IniFile object from a content already loaded in memory.
|
|
INI file object (pure .NET implementation, no dependency to Windows' libraries)