Opens the named file, parses it and returns the compiled chunk as a function. Does not execute it.
f = assert (loadfile ("myfile.lua"))
f () -- execute function now
Compare to dofile, which executes it as well. That is, dofile is equivalent to the two lines of code above.