load_from_file
Description:
Loads a key file into an empty KeyFile structure.
If the OS returns an error when opening or reading the file, a g_file_error is returned. If there is a problem parsing the file, a g_key_file_error is returned.
This function will never return a g_key_file_error_not_found error. If the file
is not found,
g_file_error_noent is returned.
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 |