[-0, +1, m]
int luaL_loadfile (lua_State *L, const char *filename);
Loads a file as a Lua chunk.
This function uses lua_load to load the chunk in the file
named filename .
If filename is NULL ,
then it loads from the standard input.
The first line in the file is ignored if it starts with a # .
This function returns the same results as lua_load ,
but it has an extra error code LUA_ERRFILE
if it cannot open/read the file.
As lua_load , this function only loads the chunk;
it does not run it. |