Skip to content

function fileRead (client-side)

Available since version: 0.3.2

This function will read the file at given path.

Declaration

string|null fileRead(int dirID, string filepath)

Parameters

  • int dirID: the game directory id, for more information see Dir constants.
  • string filepath: the path to real filename, e.g: "DEFAULT-C.TEX", can contain subdirectories, e.g: "System/Gothic2.exe"

Returns string|null

Returns string, or null in case if file doesn't exists.