to_file


Description:

public bool to_file (string filename) throws Error

Creates a JSON data stream and puts it inside `filename`, overwriting the file's current contents.

This operation is atomic, in the sense that the data is written to a temporary file which is then renamed to the given `filename`.

Parameters:

this

a generator

filename

the path to the target file

Returns:

true if saving was successful.




2022 vala-language.org