File.getLength() (Method)

Returns the length of the file measured in 8 bit characters.

Availability:

JavaScript - 1.1
Netscape Enterprise Server - 2.0
Property/method value type:Number primitive
JavaScript syntax:NESmyFile.getLength()

The length of the file is returned. You may want to compute a position within the file based on this value and use it with the setPosition() method later on.

See also:File.setPosition()