encode package:tomland

Convert data type to the textual representation of TOML values.
Convert data type to the textual representation of TOML values. and write it info the given file.