Modding Tools > Lucas' Simpsons Hit & Run Mod Launcher > Hacks > Mod Requirable Hacks > Custom Files > Custom Lua Functions > General Functions > ReadFile

ReadFile

Read the file at the given path.

Syntax

ReadFile( <path> )
  • path: The path of the file to read.

Examples

local RewardsScript = ReadFile("/GameData/scripts/missions/rewards.mfk")

Notes

No additional notes.

Version History

1.24

Fixed a memory leak when Lua failed to allocate memory to return the result of a call to the ReadFile function.

Unknown Version

Added this function.

Donut Team © 2024 · v4.0