RandomAccessFile.Length Method

Definition

Returns the length of this file.

[Android.Runtime.Register("length", "()J", "GetLengthHandler")]
public virtual long Length ();
[<Android.Runtime.Register("length", "()J", "GetLengthHandler")>]
abstract member Length : unit -> int64
override this.Length : unit -> int64

Returns

the length of this file, measured in bytes.

Attributes

Exceptions

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

Remarks

Returns the length of this file.

Java documentation for java.io.RandomAccessFile.length().

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