Gio.FileOutputStream
const Gio = imports.gi.Gio; let fileOutputStream = new Gio.FileOutputStream();
GFileOutputStream provides output streams that write their content to a file.
GFileOutputStream implements Gio.Seekable, which allows the output stream to jump to arbitrary positions in the file and to truncate the file, provided the filesystem of the file supports these operations.
To find the position of a file output stream, use Gio.Seekable.prototype.tell. To find out if a file output stream supports seeking, use Gio.Seekable.prototype.can_seek.To position a file output stream, use Gio.Seekable.prototype.seek. To find out if a file output stream supports truncating, use Gio.Seekable.prototype.can_truncate. To truncate a file output stream, use Gio.Seekable.prototype.truncate.
Hierarchy
-
GObject.Object
-
Gio.OutputStream
- Gio.FileOutputStream
-