save_to_file


Description:

[ Version ( since = "2.40" ) ]
public bool save_to_file (string filename) throws FileError

Writes the contents of this to filename using set_data.

If you need stricter guarantees about durability of the written file than are provided by set_data, use set_contents_full with the return value of to_data.

This function can fail for any of the reasons that set_data may fail.

Parameters:

this

a KeyFile

filename

the name of the file to write to

Returns:

true if successful, else false with throws set