public static save(writer as TextWriter, document as Map<String, Object>) as Void throws IOException, TOMLWriteException:
Writes a root table to an existing text writer.
The writer remains owned by the caller and is not closed by this method.
| Parameter | Description |
|---|---|
writer | Destination text writer. |
document | Root TOML table. |
try writer = FileWriter("config.toml"):
TOML.save(writer, {"port": 8080l})