Search

 

Module:Editor

Version:24.12 +

Type:String

Category:Text

 

Description

The formula 'FileExists' returns True if a file exists and False if not.

Parameters

FileName:

The full path and filename of the file whose existence you want to confirm

Note, if the text file is in the same folder as the futurama file, you can use the functions 'Concatenate' and 'GetPathToDataFiles'. Instead of entering the entire path you only have to add the FileName.

Example

Description

Create an Xml file with content and save this file in the same folder as your Futurama Editor file. In the Futurama Editor, create the formula FileExists and create in the parameter FileName the formula 'Concatenate'. In the parameters of the function 'Concatenate' you create in the first parameter the formula 'GetPathToDataFiles' and in the second formula you will fill in the file name of the just created Xml file.

Values parameters (ReadFile)

FileName:

Here you fill in the formula 'Concatenate'.

Values parameters (Concatenate)

Text1:

Here you fill in the formula 'GetPathToDataFiles'.

Text2:

Here you fill in the file name. (As example: test.xml)

Result

In the Result Window you can see 'True'.

Related Topics

- GetPathToDataFiles

Updated: 2025-01-07