Skip to content
Contact us

ReadTextFile()

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’ )

ArgumentDescription
File NameThe name of the file to read.
EncodingANSI/UFT8/UTF16LE/UTF16BE

Data type: String Returns the file content as text.

ReadTextFile( 'f:\myfolder\myfile.txt' , 'UTF8' )