Search

 

Module: Editor

Version: 2.2.1 +

Type: String

Category: Text

 

Description

The formula 'ReadFile' returns the content of a text file as a string. If the encoding of the file is important, then the formula ReadFileWithEncoding should be used.

Parameters

FileName:

Here you can enter the path of the file

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 ReadFile 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 now the content of the text file.

Related Topics

- GetPathToDataFiles

Updated: 2013-04-12