Extracted from Pike v7.6 release 33 at 2005-08-19.
pike.ida.liu.se
[Top]
Stdio

Method Stdio.file_size()


Method file_size

int Stdio.file_size(string filename)

Description

Give the size of a file. Size -1 indicates that the file either does not exist, or that it is not readable by you. Size -2 indicates that it is a directory.

See also

file_stat() , write_file() , read_bytes()