GLib.KeyFile.new

function new(): GLib.KeyFile {
    // Gjs wrapper for g_key_file_new()
}
  

Creates a new empty GLib.KeyFile object. Use GLib.KeyFile.prototype.load_from_file, GLib.KeyFile.prototype.load_from_data, GLib.KeyFile.prototype.load_from_dirs or GLib.KeyFile.prototype.load_from_data_dirs to read an existing key file.

Since 2.6

Returns

an empty GLib.KeyFile.