共用方式為


RandomAccessFile.WriteChar(Int32) Method

Definition

Writes a char to the file as a two-byte value, high byte first.

[Android.Runtime.Register("writeChar", "(I)V", "")]
public void WriteChar (int v);
[<Android.Runtime.Register("writeChar", "(I)V", "")>]
abstract member WriteChar : int -> unit
override this.WriteChar : int -> unit

Parameters

v
Int32

a char value to be written.

Implements

Attributes

Exceptions

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

Remarks

Writes a char to the file as a two-byte value, high byte first. The write starts at the current position of the file pointer.

Java documentation for java.io.RandomAccessFile.writeChar(int).

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