Home Contents | # dofile | Global | Lua Commands

## SYNOPSIS

dofile(filename)

## DESCRIPTION

Opens the named file and executes its contents as a Lua chunk. When called without arguments, dofile executes the contents of the standard input (stdin). In case of errors, dofile propagates the error to its caller (that is, dofile does not run in protected mode).

## RETURN VALUE

Returns all values returned by the chunk.