$io.read

Read a file.
Syntax
    $io{read}{file_name}{bytes_per_character}{offset}{length}
    $io.read{file_name}{bytes_per_character}{offset}{length}
DocumentationRead a file.

    Parameters:
      file_name, the name of the file to read (see the note about the filename syntax at the end of this document).
      bytes_per_character, the amount of bytes per character. Valid values are 1 for ASCII characters or 2 for unicode characters. The value of this parameter defaults to 1.
      offset, an offset of the specified file to start reading from.
      length, an amount of bytes to read starting from the specified offset.
    Returns:
      the contents of the file read in the range of 'offset' through 'offset' + 'length'.
Examples
GroupSpecial
Minimum required transaction-mode:READ=IO
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters2
Maximum parameters 4