Files.NewBufferedWriter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
NewBufferedWriter(IPath, IOpenOption[]) |
Opens or creates a file for writing, returning a |
NewBufferedWriter(IPath, Charset, IOpenOption[]) |
Opens or creates a file for writing, returning a |
NewBufferedWriter(IPath, IOpenOption[])
Opens or creates a file for writing, returning a BufferedWriter
that may be used to write text to the file in an efficient manner.
[Android.Runtime.Register("newBufferedWriter", "(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/BufferedWriter;", "", ApiSince=26)]
public static Java.IO.BufferedWriter? NewBufferedWriter (Java.Nio.FileNio.IPath? path, params Java.Nio.FileNio.IOpenOption[]? options);
[<Android.Runtime.Register("newBufferedWriter", "(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/BufferedWriter;", "", ApiSince=26)>]
static member NewBufferedWriter : Java.Nio.FileNio.IPath * Java.Nio.FileNio.IOpenOption[] -> Java.IO.BufferedWriter
Parameters
- path
- IPath
the path to the file
- options
- IOpenOption[]
options specifying how the file is opened
Returns
a new buffered writer, with default buffer size, to write text to the file
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
NewBufferedWriter(IPath, Charset, IOpenOption[])
Opens or creates a file for writing, returning a BufferedWriter
that may be used to write text to the file in an efficient manner.
[Android.Runtime.Register("newBufferedWriter", "(Ljava/nio/file/Path;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/io/BufferedWriter;", "", ApiSince=26)]
public static Java.IO.BufferedWriter? NewBufferedWriter (Java.Nio.FileNio.IPath? path, Java.Nio.Charset.Charset? cs, params Java.Nio.FileNio.IOpenOption[]? options);
[<Android.Runtime.Register("newBufferedWriter", "(Ljava/nio/file/Path;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/io/BufferedWriter;", "", ApiSince=26)>]
static member NewBufferedWriter : Java.Nio.FileNio.IPath * Java.Nio.Charset.Charset * Java.Nio.FileNio.IOpenOption[] -> Java.IO.BufferedWriter
Parameters
- path
- IPath
the path to the file
- cs
- Charset
the charset to use for encoding
- options
- IOpenOption[]
options specifying how the file is opened
Returns
a new buffered writer, with default buffer size, to write text to the file
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.