REBOL Document

Exists? - Function Summary


Summary:

Determines if a file or URL exists.

Usage:

exists? target

Arguments:

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

Description:

Returns FALSE if the file does not exist.


    print exists? %file.txt
    true


    print exists? %doc.r
    false

Related:

delete - Deletes the specified file(s).
modified? - Returns the last modified date of a file or URL.
read - Reads from a file, url, or port-spec (block or object).
size? - Returns the size of a file or URL's contents.
write - Writes to a file, url, or port-spec (block or object).


<Back | Index | Next>

Copyright 2004 REBOL Technologies