Pike v8.0 release 1738

Method Stdio.file_size()


Method file_size

int 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, -3 that it is a symlink and -4 that it is a device.

See also

file_stat(), write_file(), read_bytes()