mirror of
https://github.com/ToyB-Chan/mini-file-format.git
synced 2026-05-14 10:21:16 +02:00
Update README.md
This commit is contained in:
18
README.md
18
README.md
@@ -80,6 +80,24 @@ The format supports the following data types:
|
||||
- Example: `wholeFloat = 1f`
|
||||
- Example: `wholeFloat = 5.f`
|
||||
|
||||
### Array of Subsections
|
||||
Arrays of subsections are implicty realizable by naming subsections, and do not need specific parsing rules.
|
||||
We recommend using something alike the following structure:
|
||||
```text
|
||||
[Database]
|
||||
Version = 1
|
||||
|
||||
[Database.Persons]
|
||||
[Database.Persons.0]
|
||||
Name = John Smith
|
||||
Age = 36
|
||||
|
||||
[Database.Persons.1]
|
||||
Name = Emily Johnson
|
||||
Age = 24
|
||||
```
|
||||
As mentioned above, it is to be handled like any other subsection - that means not starting at index 0 nor having discontinuous indicies make the file illformed.
|
||||
|
||||
## Example Structure
|
||||
```text
|
||||
[MySection]
|
||||
|
||||
Reference in New Issue
Block a user