links
parent
975956f8c9
commit
98b029c96f
8
Home.md
8
Home.md
|
@ -81,13 +81,13 @@ parameter1 = value11
|
||||||
parameter2 = value12
|
parameter2 = value12
|
||||||
```
|
```
|
||||||
|
|
||||||
The configuration files themselves are located [here]().
|
The configuration files themselves are located [here](https://git.zhirov.kz/dlang/readconf/src/branch/master/examples).
|
||||||
|
|
||||||
## Examples of reading configuration files
|
## Examples of reading configuration files
|
||||||
|
|
||||||
### Reading a simple configuration file
|
### Reading a simple configuration file
|
||||||
|
|
||||||
A simple example of reading a single configuration file and getting parameter **values** from it. The [simple.conf]() file is taken as the configuration file:
|
A simple example of reading a single configuration file and getting parameter **values** from it. The [simple.conf](https://git.zhirov.kz/dlang/readconf/src/branch/master/examples/simple.conf) file is taken as the configuration file:
|
||||||
|
|
||||||
```d
|
```d
|
||||||
{
|
{
|
||||||
|
@ -130,7 +130,7 @@ Getting parameter **values** from the selected **section** is done via the key f
|
||||||
|
|
||||||
### Reading from various sections
|
### Reading from various sections
|
||||||
|
|
||||||
Reading a configuration file with different **sections**. The [section.conf]() file is taken as the configuration file:
|
Reading a configuration file with different **sections**. The [section.conf](https://git.zhirov.kz/dlang/readconf/src/branch/master/examples/sections.conf) file is taken as the configuration file:
|
||||||
|
|
||||||
```d
|
```d
|
||||||
{
|
{
|
||||||
|
@ -154,7 +154,7 @@ Reading a configuration file with different **sections**. The [section.conf]() f
|
||||||
|
|
||||||
### Reading multiple configuration files
|
### Reading multiple configuration files
|
||||||
|
|
||||||
To read multiple configuration files, you need to associate the file with its alias. In this capacity, the file name itself acts by default. If the files are located in different directories but have the same names - in this case, you need to give them unique aliases. The [simple.conf](), [section.conf]() and [comments.conf]() files is taken as the configuration files:
|
To read multiple configuration files, you need to associate the file with its alias. In this capacity, the file name itself acts by default. If the files are located in different directories but have the same names - in this case, you need to give them unique aliases. The [simple.conf](https://git.zhirov.kz/dlang/readconf/src/branch/master/examples/simple.conf), [section.conf](https://git.zhirov.kz/dlang/readconf/src/branch/master/examples/sections.conf) and [comments.conf](https://git.zhirov.kz/dlang/readconf/src/branch/master/examples/comments.conf) files is taken as the configuration files:
|
||||||
|
|
||||||
```d
|
```d
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue