Sdílet prostřednictvím


RandomAccessFile.WriteBoolean(Boolean) Method

Definition

Writes a boolean to the file as a one-byte value.

[Android.Runtime.Register("writeBoolean", "(Z)V", "")]
public void WriteBoolean (bool v);
[<Android.Runtime.Register("writeBoolean", "(Z)V", "")>]
abstract member WriteBoolean : bool -> unit
override this.WriteBoolean : bool -> unit

Parameters

v
Boolean

a boolean value to be written.

Implements

Attributes

Exceptions

if this file is closed or another I/O error occurs.

Remarks

Writes a boolean to the file as a one-byte value. The value true is written out as the value (byte)1; the value false is written out as the value (byte)0. The write starts at the current position of the file pointer.

Java documentation for java.io.RandomAccessFile.writeBoolean(boolean).

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