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