[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: I think it's "require" but I can't get it to work....
- From: Ron Hudson <rhudson@...>
- Date: Sat, 25 Oct 2003 09:34:25 -0500
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)
D.
--
Daniel Silverstone <dsilvers@digital-scurf.org>
Digital-Scurf