openReadWrite
Opens a File for read/write operations. The File is not truncated if it already exists, and the initial FileStream.position is 0
.
e.g.
"/path/to/my/file".toFile().openReadWrite(excl = OpenExcl.MustExist).use { s ->
// read
// write
}
Content copied to clipboard
Return
A FileStream.ReadWrite for read/write operations.
Parameters
excl
The OpenExcl desired for this open operation. If null
, then OpenExcl.MaybeCreate.DEFAULT will be used.
See also
Throws
UnsupportedOperationException
On Kotlin/JS-Browser.