標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

最近の作業部屋活動履歴

2023-12-31
2023-12-03
2023-11-11
2023-11-05
2023-11-02
2023-07-13
2023-04-06

最近のWikiの更新 (Recent Changes)

2023-03-26
2023-03-19
2023-03-14
2023-03-11

Wikiガイド(Guide)

サイドバー (Side Bar)

ConfigParser

The ConfigParser module contains a parser for simple configuration files, similar to what's found in Microsoft's INI files.

You can also find a summary of the API for the ConfigParser module.

Overview

Here is an example configuration file for a program

  1. [general]
  2. directory = $HOME/.local/share/medialist/
  3. verify_delete = no
  4. [cli]
  5. verify_delete = yes

You could create this programmatically:

  1. import mlib.configparser;
  2. void main()
  3. {
  4. auto parser = new ConfigParser();
  5. parser.addSection("general");
  6. parser.addOption("general", "directory", "$HOME/.local/share/medialist");
  7. parser.addOption("general", "verify_delete", "no");
  8. parser.addSection("cli");
  9. parser.addOption("cli", "verify_delete", "yes");
  10. }