Function: fbinary

Syntax

fbinary (<file>)

Type

numeric

Returns

Whether an existing file has binary contents (1) or is a text file (0).

Parameters

Examples

unless (fbinary(myfile.dat)) !File is a text a file

Notes

If the target file does not exist or if the target file is a directory, 0 is returned, and the system identifier funcerr is set to -1.