REBOL Document

File? - Function Summary


Summary:

Returns TRUE for file values.

Usage:

file? value

Arguments:

value - The value argument. (must be: any-type)

Description:

Returns FALSE for all other values. Note that FILE? does not check for the existence of a file, but whether or not a value is the FILE! datatype.


    print file? %file.txt
    true


    print file? "REBOL"
    false

Related:

type? - Returns a value's datatype.


<Back | Index | Next>

Copyright 2004 REBOL Technologies