Share via


Overview | Methods | This Package | All Packages

OverviewMethodsThis PackageAll Packages

File.setPosition

Sets the current position of this file to the specified value.

Syntax

public void setPosition( long value )

Parameters

value

The new position of the file.

Exceptions

WinIOException thrown if an error occurs or if the file has been closed.

Remarks

It is not an error to set the current position beyond the length of the file.

See Also   IByteStream.setPosition, getPosition