KeyFile.loadFromFile

Loads a key file into an empty #GKeyFile structure. If the file could not be loaded then @error is set to either a #GFileError or #GKeyFileError.

class KeyFile
bool
loadFromFile

Parameters

file string

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

flags GKeyFileFlags

flags from #GKeyFileFlags

Return: %TRUE if a key file could be loaded, %FALSE otherwise

Throws

GException on failure.

Meta