ExpressBase.Files.loadMethod
load(file)

Load data from file to a Dict.

By now, YAML, JSON, and TOML formats are supported. The format is recognized by the file extension.

ExpressBase.Files.parentdirMethod
parentdir(file)

Get the directory of a file.

The problem of dirname is that it returns an empty string if users do not write "./" in the file path. This will cause an error in tempname.

ExpressBase.Files.saveMethod
save(file, data)

Save data to file.

By now, YAML, JSON, and TOML formats are supported. The format is recognized by the file extension.

If data is a Dict, its keys should be Strings so that load can return the same data.

Warning

Allowed data types can be referenced in JSON.jl documentation and YAML.jl documentation. For TOML format, only AbstractDict type is allowed.