file_size

file_size -- gives the file size.

Syntax

file_size (filename)

		

Arguments

filename

A file name as a string, as defined by the operating system.

Returns

The size of the file in bytes if the file exists and is readable, else nil.

Example

    Gamma> file_size("myfile.dat");
    1467
    Gamma> file_size("non_existing.file");
    nil
    Gamma> file_size("unreadable.file");
    nil
    Gamma> 
    		

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.