1
\alias{gFileOpenReadwrite}
2
\name{gFileOpenReadwrite}
3
\title{gFileOpenReadwrite}
4
\description{Opens an existing file for reading and writing. The result is
5
a \code{\link{GFileIOStream}} that can be used to read and write the contents of the file.}
6
\usage{gFileOpenReadwrite(object, cancellable = NULL, .errwarn = TRUE)}
8
\item{\verb{object}}{\code{\link{GFile}} to open}
9
\item{\verb{cancellable}}{a \code{\link{GCancellable}}}
10
\item{.errwarn}{Whether to issue a warning on error or fail silently}
12
\details{If \code{cancellable} is not \code{NULL}, then the operation can be cancelled by
13
triggering the cancellable object from another thread. If the operation
14
was cancelled, the error \code{G_IO_ERROR_CANCELLED} will be returned.
16
If the file does not exist, the G_IO_ERROR_NOT_FOUND error will be returned.
17
If the file is a directory, the G_IO_ERROR_IS_DIRECTORY error will be returned.
18
Other errors are possible too, and depend on what kind of filesystem the file is on.
19
Note that in many non-local file cases read and write streams are not supported,
20
so make sure you really need to do read and write streaming, rather than
21
just opening for reading or writing.
24
A list containing the following elements:
25
\item{retval}{[\code{\link{GFileIOStream}}] \code{\link{GFileIOStream}} or \code{NULL} on error.}
26
\item{\verb{error}}{a \code{\link{GError}}, or \code{NULL}}
28
\author{Derived by RGtkGen from GTK+ documentation}