Description Usage Arguments Details Value Author(s)
Replaces the contents of file
with contents
of length
bytes.
If etag
is specified (not NULL
) any existing file must have that etag, or
the error G_IO_ERROR_WRONG_ETAG
will be returned.
1 2 | gFileReplaceContents(object, contents, length, etag, make.backup,
flags = "G_FILE_CREATE_NONE", cancellable = NULL, .errwarn = TRUE)
|
|
input |
|
a string containing the new contents for |
|
the length of |
|
the old entity tag
for the document, or |
|
|
|
a set of |
|
optional |
.errwarn |
Whether to issue a warning on error or fail silently |
If make.backup
is TRUE
, this function will attempt to make a backup of file
.
If cancellable
is not NULL
, then the operation can be cancelled by
triggering the cancellable object from another thread. If the operation
was cancelled, the error G_IO_ERROR_CANCELLED
will be returned.
The returned new.etag
can be used to verify that the file hasn't changed the
next time it is saved over.
A list containing the following elements:
retval |
[logical] |
|
a location to a new entity tag
for the document. This should be freed with |
|
a |
Derived by RGtkGen from GTK+ documentation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.