fexists

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
Line 6: Line 6:
 
Return Value: 0 or 1
 
Return Value: 0 or 1
 
|
 
|
Syntax: fexists(filename=STRING / TEXT)
+
Syntax: fexists(filename=STRING / TEXT)
 
   
 
   
 
If passed a single value, it will return 1 if the file exists and 0 if it does not exist.
 
If passed a single value, it will return 1 if the file exists and 0 if it does not exist.
Line 33: Line 33:
 
|
 
|
 
|
 
|
 +
*[[list]]
 +
*[[filetype]]
 
|
 
|
 
|
 
|

Revision as of 12:58, 24 February 2006



64-bit SafeYes

Description

Determine if a file exists

Arguments and Return Values

Arguments: a string containing a filename

Return Value: 0 or 1

Usage

Syntax: fexists(filename=STRING / TEXT)

If passed a single value, it will return 1 if the file exists and 0 if it does not exist.

When passed a TEXT array, it will return an array of values, one for each row of the input.

Examples

dv> fexists("clndcs1.png")
1

dv> list
Text Buffer with 5 lines of text
    1: clndcs1.png
    2: clndcs2.png
    3: clndcs3.png
    4: clndcs4.png
    5: clndcs5.png

dv> fexists(list)
1x5x1 array of int, bsq format [20 bytes]
1
1
1
0
0

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 07-06-2009

Personal tools