Microsoft SDK for Java

File.getLength

Retrieves the length in bytes of this file.

Syntax

public long getLength()

Return Value

Returns the length of the file.

Exceptions

WinIOException thrown if the length of the file cannot be determined or if the file has been closed.

Overrides   DataStream.getLength

See Also   IByteStream.getLength, setLength

© 1999 Microsoft Corporation. All rights reserved. Terms of use.