Method Load
| Improve this Doc View SourceLoad(String)
Loads the sections file.
Declaration
public static ISectionsData Load(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| String | path | The path of the file to load. |
Returns
| Type | Description |
|---|---|
| ISectionsData | An instance with the data of each section. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
| ParserException | If the parser find an error during the parsing. |
Load(String, Encoding)
Loads the sections file with the specified encoding.
Declaration
public static ISectionsData Load(string path, Encoding encoding)
Parameters
| Type | Name | Description |
|---|---|---|
| String | path | The path of the file to load. |
| Encoding | encoding | The encoding applied to the contents of the file. |
Returns
| Type | Description |
|---|---|
| ISectionsData | An instance with the data of each section. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
| ParserException | If the parser find an error during the parsing. |