standard.C.io.filesize

filesize is available since version 1.0.

Prototype:

number filesize(string path)

Parameters

path
[in] The path of the file

Description:

Returns the file length, in bytes, of the target file.

Return value:

Returns the file length, in bytes, of the target file.

Example
import standard.C.io

define FILENAME          "test.txt"

class Main {
     function Main() {
          echo "The size of " + FILENAME + " is " + filesize(FILENAME) + " bytes.";
     }
}  

Results 
The size of test.txt is 350 bytes.