File Exists

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Example)
Line 1: Line 1:
$File Exists is a [[File Functions|File Function]]. The function returns the list of all files within a given directory.
+
$File Exists is a [[File Functions|File Function]]. The function returns whether or not a file exists.
 
+
You can set the function to return all files with file paths included or only the name of the files with their extensions.
+
  
 
== Example ==
 
== Example ==

Revision as of 20:36, 11 April 2013

$File Exists is a File Function. The function returns whether or not a file exists.

Example

set(#checking, $file exists("C:\\Users\\Desktop\\Miscellaneous\\summaries.txt"), "Global")

If the file exists, the function will return the value "true".


File:Fileexists0.jpg



If the file does not exist, the function will return the value "false".


File:Fileexists.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox