lua-users home
lua-l archive

Re: How can I interpret a buffer with lua?

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


On Apr 30, 2005, at 09:44, Groleo Marius wrote:
So if I'm reading the lua script into a buffer( string), then I'm able
to interpret that string?
Yes.
E.g:
local aFile, aStatus = io.open( aPath, "r" )
local aContent = aFile:read( "*all" )
local aChunk, aStatus = loadstring( aContent )
aChunk()
Cheers
--
PA, Onnay Equitursay
http://alt.textdrive.com/

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