lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Saturday, October 25, 2003, at 06:13  AM, Daniel Silverstone wrote:

On Sat, 2003-10-25 at 04:17, Ron Hudson wrote:
I have a file with a bunch of functions in it, named "ansi.lua"
How do I properly use the functions in that file when writing
a program?

dofile "/path/to/ansi.lua"

ansi.lua is in the same directory as the file I am working on.

should do the trick

*or* put ansi.lua on the LUA_PATH and then you can do

require "ansi"

I actually tried both of these

What operating system are you using?

linux (tomsrtbt)


Daniel Silverstone <>