Skip to main content

file_size

Discworld driver help

file_size

Name

file_size() - get the size of a file

Synopsis

int file_size( string file );

Description

file_size() returns the size of file `file' in bytes. Size -1 indicates that `file' either does not exist, or that it is not readable by you. Size -2 indicates that `file' is a directory.

See also

file_length(), stat(), get_dir()