Sdílet prostřednictvím


RandomAccessFile.WriteChars(String) Method

Definition

Writes a string to the file as a sequence of characters.

[Android.Runtime.Register("writeChars", "(Ljava/lang/String;)V", "")]
public void WriteChars (string? s);
[<Android.Runtime.Register("writeChars", "(Ljava/lang/String;)V", "")>]
abstract member WriteChars : string -> unit
override this.WriteChars : string -> unit

Parameters

s
String

a String value to be written.

Implements

Attributes

Exceptions

if an I/O error occurs while writing to this file.

Remarks

Writes a string to the file as a sequence of characters. Each character is written to the data output stream as if by the writeChar method. The write starts at the current position of the file pointer.

Java documentation for java.io.RandomAccessFile.writeChars(java.lang.String).

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

See also