Function reference
Read the contents of a text file into memory.
Use this function to read the content from XML documents and other text files.
ReadTextFile( ‘Filename’ , ‘‘ANSI/UFT8/UTF16LE/UTF16BE’ )
Argument | Description |
File Name | The name of the file to read. |
Encoding | ANSI/UFT8/UTF16LE/UTF16BE |
Data type: String
Returns the file content as text.
Example 1
ReadTextFile( ‘f:\myfolder\myfile.txt’ , ‘UTF8’ )
Last modified:
14 September 2021
Post your comment on this topic.