Java.IO.RandomAccessFile.Seek Method
Moves this file's file pointer to a new position, from where following read, write or skip operations are done.

Syntax

[Android.Runtime.Register("seek", "(J)V", "GetSeek_JHandler")]
public virtual void Seek (long pos)

Parameters

offset
the new file pointer position.

Exceptions

TypeReason
Java.IO.IOExceptionif this file is closed, pos or another I/O error occurs.

Remarks

Moves this file's file pointer to a new position, from where following read, write or skip operations are done. The position may be greater than the current length of the file, but the file's length will only change if the moving of the pointer is followed by a write operation.

[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