Prokee Module: settings

From prokee
Revision as of 02:08, 29 April 2019 by Andy (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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";