Skip to content

function file.read (shared-side)

Available since version: 0.2

This method will read a text from a file.

Declaration

void file.read(int|string param = "l")

Parameters

  • int|string param: If param is integer, then the function will read x characters from a file. If param is a string, then the following commands are supported: - "a" - read whole file - "l" - read line without \n character - "L" - read line with \n character. If param is not passed, then by default line will be read from file.