REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: file?

file?  value

Returns TRUE if it is this type.

Arguments:

value [any-type!]

See also:

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

Note also this is not a direct opposite to the dir? function as dir? does not test against a datatype, where file? does.


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin