Read variables from file
Read name=value lines (a settings or .properties-style file) into a Dictionary; blank lines and lines starting with # or ; are skipped.
Command in the File toolkit · id ooa.file/read_variables · 6 inputs (1 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Path | File | Yes | Text file with one name=value per line. | |
| Separator | String | No | = | Text between the name and the value, e.g. = or : or a tab (\t). |
| Encoding | String | No | utf-8 | Text encoding: utf-8, ansi, unicode ... |
| Trim | Boolean | No | true | Remove spaces around names and values. |
| Trim side | String | No | both | Which spaces trim removes: on both sides, only before, or only after the name and the value. |
| Lowercase keys | Boolean | No | false | Turn names into lower case, so Server and server are the same variable. |
Outputs
| Output | Type | What it is |
|---|---|---|
| values | Dictionary | Name to value, in file order. |
| count | Number | Number of values read. |