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. Since 2.6

class KeyFile
int
loadFromFile

Parameters

file string

the path of a filename to load, in the GLib filename encoding. [type filename]

flags GKeyFileFlags

flags from GKeyFileFlags

Return Value

Type: int

TRUE if a key file could be loaded, FALSE otherwise

Throws

GException on failure.

Meta