REBOL Document

Size? - Function Summary


Summary:

Returns the size of a file or URL's contents.

Usage:

size? target

Arguments:

target - The target argument. (must be: file url)

Description:

If the file or URL is a directory, it returns the number of entries in the directory.


    print size? %file.txt
    5221

Related:

exists? - Determines if a file or URL exists.
modified? - Returns the last modified date of a file or URL.


<Back | Index | Next>

Copyright 2004 REBOL Technologies