Available since Version 1.0.
Reads the entire content of a file.
Syntax
File.ReadAll( path )Arguments
- path (string): The path of the file to read.
Return Values
- (string): Returns the content of the file as a string, or nil if the file does not exist.
Examples
local content = File.ReadAll("path/to/the_bee_movie_script.txt")
if content then
print("File content:", content)
end