pike.ida.liu.se
Search for
Home > Docs > Pike reference

[Top]
Stdio

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()

Module reference for Pike v7.8 release 116, 2008-12-31