Re: How can I interpret a buffer with lua?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: How can I interpret a buffer with lua?
- From: PA <petite.abeille@...>
- Date: 2005年4月30日 09:48:38 +0200
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/