lua-users home
lua-l archive

Re: I think it's "require" but I can't get it to work....

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


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"
should do the trick
*or* put ansi.lua on the LUA_PATH and then you can do
require "ansi"
What operating system are you using?
D.
-- 
Daniel Silverstone <dsilvers@digital-scurf.org>
Digital-Scurf

AltStyle によって変換されたページ (->オリジナル) /