Product Information > JADE Encyclopaedia of Classes – Volume 1 > Chapter 1 - System Classes > fileLengthDec

fileLengthDec

fileLengthDec(): Decimal;

The fileLengthDec method of the File class returns the size of the file (in file units) as a decimal value. Use this method to test for an empty file.

For Unicode text, the file unit is character (not byte). For Unicode text files that contain a Unicode File Marker, the file marker specified in the unicodeBOM property is ignored.