|
| CfgFile (string FileName) |
| Create an instance of the CfgFile object from the given CFG file. The instance is read/write, with AutoSave set to true. More...
|
|
| CfgFile (string FileName, bool AutoSave) |
| Create an instance of the CfgFile object from the given CFG file. The instance is read/write, using the specified AutoSave value. More...
|
|
| CfgFile (string FileName, bool AutoSave, bool ReadOnly) |
| Create an instance of the CfgFile object from the given CFG 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 CFG file.
|
|
bool | SaveTo (string FileName, Encoding FileEncoding) |
| Save the content to another CFG file.
|
|
bool | Save () |
| Save the file. Return false in case of error.
|
|
void | SaveEx () |
| Save the file. Throw an exception in case of error.
|
|
string | ReadString (string Name, string Default="") |
| Read a string entry from the CFG file.
|
|
int | ReadInteger (string Name, int Default=0) |
| Read an integer entry from the CFG file.
|
|
bool | ReadBoolean (string Name, bool Default=false) |
| Read a boolean entry from the CFG file.
|
|
bool | Erase (string Name) |
| Remove an entry from the CFG file. More...
|
|
bool | Remove (string Name) |
| Remove an entry from the INI file.
|
|
bool | WriteName (string Name) |
| Write an empty entry into the CFG file.
|
|
bool | WriteString (string Name, string Value) |
| Write a string entry into the CFG file.
|
|
bool | WriteInteger (string Name, int Value) |
| Write an integer entry into the CFG file.
|
|
bool | WriteBoolean (string Name, bool value) |
| Write a boolean entry into the CFG file.
|
|
string [] | Read (bool withAssociatedValues) |
| Return all the entries from the file. More...
|
|
|
static CfgFile | OpenReadOnly (string FileName) |
| Create an instance of the CfgFile object for the given CFG file. The instance is read only.
|
|
static CfgFile | OpenReadOnly (string FileName, Encoding FileEncoding) |
| Create an instance of the CfgFile object for the given CFG file. The instance is read only.
|
|
static CfgFile | OpenReadWrite (string FileName, bool AutoSave=false) |
| Create an instance of the CfgFile object for the given CFG file. The instance is read/write. More...
|
|
static CfgFile | OpenReadWrite (string FileName, Encoding FileEncoding, bool AutoSave=false) |
| Create an instance of the CfgFile object for the given CFG file. The instance is read/write. More...
|
|
static CfgFile | CreateFromText (string Text) |
| Create an instance of the CfgFile object from a content already loaded in memory.
|
|
static CfgFile | CreateFromLines (string[] Lines) |
| Create an instance of the CfgFile object from a content already loaded in memory.
|
|