Concept Framework 2.2 documentation Contents | Index

standard.C.io.filesize

Name Version Deprecated
filesize version 1.0 no

Prototype:
number filesize(string path)

Parameters:
path      [in] The path of the file

Description:
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. 

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

Documented by Simona Plesuvu, generation time: Sun Jan 27 18:15:16 2013 GMT(c)2013 Devronium Applications