Available since Version 1.7.
Read the file at the given path.
Syntax
ReadFile( path )Arguments
- path (string): The path of the file to read.
Return Values
- (string): The contents of the file.
Examples
local RewardsScript = ReadFile("/GameData/scripts/missions/rewards.mfk")Version History
Version 1.24
Fixed a memory leak when Lua failed to allocate memory to return the result of a call to the ReadFile function.