load_from_file


Description:

public bool load_from_file (string file, KeyFileFlags flags) throws KeyFileError, FileError

Loads a key file into an empty KeyFile structure.

If the file could not be loaded then throws is set to either a FileError or KeyFileError.

Parameters:

this

an empty KeyFile struct

file

the path of a filename to load, in the GLib filename encoding

flags

flags from KeyFileFlags

Returns:

true if a key file could be loaded, false otherwise