file_size - get the size of a file

int file_size( string file );

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. Size -2 indicates that 'file' is a directory.

See also: stat , get_dir