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.