Share via


RandomAccessFile.WriteBytes(String) Method

Definition

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

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

Parameters

s
String

a string of bytes to be written.

Implements

Attributes

Exceptions

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

Remarks

Writes the string to the file as a sequence of bytes. Each character in the string is written out, in sequence, by discarding its high eight bits. The write starts at the current position of the file pointer.

Java documentation for java.io.RandomAccessFile.writeBytes(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