Difference between revisions of "Prokee Module: settings"
Jump to navigation
Jump to search
(Created page with "This module provides methods to read and write ini-files. == Syntax of ini-Files == The ini-files are parsed line by line. ''line''[\n...] Each ''line'' may contain one of t...") |
|||
| Line 47: | Line 47: | ||
->file="test.txt"; | ->file="test.txt"; | ||
->file="main.txt"; | ->file="main.txt"; | ||
| + | |||
| + | == Interfaces == | ||
| + | |||
| + | === AbsSettings === | ||
| + | |||
| + | === AbsMultiSettings === | ||
Revision as of 02:14, 29 April 2019
This module provides methods to read and write ini-files.
Syntax of ini-Files
The ini-files are parsed line by line.
line[\n...]
Each line may contain one of the following contents:
DEF title[:[comment]]
\[title\][comment]
END|}
$|-[>]name[ [...]]=[ [...]]("value"[comment])|(value[;[comment]])
[comment]
Examples
Example 1:
DEF window:SETTINGS
{
$show_window="maximize";
}
DEF files:SETTINGS
{
$file="info.txt";
$file="test.txt";
$file="main.txt";
}
Example 2:
DEF window
$show_window="maximize";
END
DEF files
$file="info.txt";
$file="test.txt";
$file="main.txt";
END
Example 3:
[window] ->show_window="maximize"; [files] ->file="info.txt"; ->file="test.txt"; ->file="main.txt";