GLib.KeyFile.prototype.load_from_file
function load_from_file(file: String, flags: GLib.KeyFileFlags): Boolean {
// Gjs wrapper for g_key_file_load_from_file()
}
Loads a key file into an empty GLib.KeyFile structure. If the file could not be loaded then @error is set to either a GLib.FileError or GLib.KeyFileError.
Since 2.6
- file
the path of a filename to load, in the GLib filename encoding
- flags
flags from GLib.KeyFileFlags
- Returns
true if a key file could be loaded, false otherwise