Tao.Lua SDK Documentation

Lua.luaL_loadfile Method 

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 #.

[Visual Basic]
Public Shared Function luaL_loadfile( _
   ByVal L As IntPtr, _
   ByVal filename As String _
) As Integer
[C#]
public static int luaL_loadfile(
   IntPtr L,
   string filename
);

Parameters

L
filename

Return Value

Remarks

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.

See Also

Lua Class | Tao.Lua Namespace