Summary

Functions

Reads a file like the stock file.Read, dropping one trailing newline from the contents.

Functions

file.Read(fileName, pathName)

server gamemodes/catwork/gamemode/core/sv_kernel.lua:39

Reads a file like the stock file.Read, dropping one trailing newline from the contents.

Defined only on Linux servers, where the original is kept as ClockworkFileRead.

Parameters

  • fileName String Path of the file to read
  • pathName String Search path, as for the stock file.Read (e.g. 'GAME' or 'DATA')

Returns

  • String The file contents, or nil if the file could not be read

Defined in