Java.IO.RandomAccessFile.Write Method
Writes byteCount bytes from the byte array buffer to this file, starting at the current file pointer and using byteOffset as the first position within buffer to get bytes.

Syntax

[Android.Runtime.Register("write", "([BII)V", "GetWrite_arrayBIIHandler")]
public virtual void Write (byte[] buffer, int offset, int count)

Parameters

buffer
the buffer to write.
byteOffset
the index of the first byte in buffer to write.
byteCount
the number of bytes from the buffer to write.

Exceptions

TypeReason
Java.Lang.IndexOutOfBoundsExceptionif byteCount , byteOffset or byteCount + byteOffset is greater than the size of buffer.
Java.IO.IOExceptionif an I/O error occurs while writing to this file.

Remarks

Writes byteCount bytes from the byte array buffer to this file, starting at the current file pointer and using byteOffset as the first position within buffer to get bytes.

[Android Documentation]

Requirements

Namespace: Java.IO
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1