Skip to content

First use

Medialo edited this page Jun 10, 2021 · 1 revision

Step 1 - Yaml instance


Start by create an instance of PbmYaml:

PbmYaml yaml = new PbmYaml();

Step 2 - Load a file


To load a file, you have some methods:

yaml.load("myConfigFile");

.yml extension is automatically added to the file's name.

To force an extension use:

yaml.load("myConfigFile","extension");

yaml.load("myConfigFile","config"); // will produce the file name --> myConfigFile.config

Now you are ready to use your yaml file !

Clone this wiki locally