KeyFile.loadFromData

bool loadFromData(string data, glib.types.KeyFileFlags flags)

Loads a key file from memory into an empty #GKeyFile structure. If the object cannot be created then error is set to a #GKeyFileError.

Parameters

datakey file loaded in memory
flagsflags from #GKeyFileFlags

Returns

true if a key file could be loaded, false otherwise

Throws

[KeyFileException]