loadFromFile

fun loadFromFile(file: String, flags: KeyFileFlags): <Error class: unknown class><Boolean>

Loads a key file into an empty #GKeyFile 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

Return

true if a key file could be loaded, false otherwise

Since

2.6

Parameters

file

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

flags

flags from #GKeyFileFlags