FANDOM



dofile(<sFileName>)
Description (from LUA 4 Manual: 6.1 Basic Functions)
"Receives a file name, opens the named file, and executes its contents as a Lua chunk, or as pre-compiled chunks. When called without arguments, dofile executes the contents of the standard input (stdin). If there is any error executing the file, then dofile returns nil. Otherwise, it returns the values returned by the chunk, or a non-nil value if the chunk returns no values. It issues an error when called with a non-string argument."
Example


Arguments
<sFileName>: the name of the file to execute as a Lua chunk.
Related Pages


Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.