Skip to main content
Skip table of contents

f$TextFileRead (f$TextDateiLesen)


f$TextFileRead (f$TextDateiLesen)

Opens and reads a file with a given encoding into a string parameter.

Please note that, when entering the path in the file name, the backslash ( \ ) character must be entered twice ("\\").

Syntax:

Status = f$TextFileRead( FileName, ParaNameContent, Encoding )

 

Argument

Type

Meaning

 

FileName

String

Name of the file to be opened and read from. Please provide the complete path. (Source)

 

ParaNameContent

String

Name of the string parameter in which the file's complete content will be written. (Target)

 

Encoding

Integer

0: ANSI
1: UTF-8
2: UTF-16LE (Little Endian)

Result:

Integer

0: The file has successfully been read and the content has been copied to the target parameter.
-1: The file does not exist.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.