Extracted from Pike v7.3 release 18 at 2002-03-27.
pike.roxen.com
[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, Stdio.write_file, Stdio.read_bytes