Config.from_file


Description:

[ CCode ( has_construct_function = false ) ]
public Config.from_file (File file) throws Error

Create a new config from a single on disk file.

This is a convenience API and is exactly the same as creating an empty Config using Config and adding the file with add_file. The level will be set to LOCAL. If the config could not be loaded this function returns null and throws will be set accordingly.

Parameters:

file

the file to load.

Returns:

a Config.