FileReadAllText

Opens a text file, reads all lines of the file, and then closes the file.

SYNTAX
FileReadAllText(fileName)
 FileReadAllText(fileName, encoding)
ARGUMENTS

fileName The file to open.
encoding You can use the following values as encoding parameters.
  • Empty string. In this case, the default encoding (ANSI code page of the operating system) is used.
  • Code page. For example, "1252"
  • Name. For example, "windows-1252"
  • User-friendly name. For example, "Western European" (Windows)

For a list of possible encoding parameters, see Encoding parameters.

RETURN A string containing all lines of the file