public static save(path as Path, document as Map<String, Object>) as Void throws IOException, TOMLWriteException:
Saves a root table to a path, replacing existing content.
| Parameter | Description |
|---|---|
path | Destination path. |
document | Root TOML table. |
document = {"port": 8080l}
TOML.save(Path("config.toml"), document)