|
|
||
|
> local aFile, aStatus = io.open( aPath, "rb" )
> local aContent = aFile:read( "*all" )
> local aChunk, aStatus = loadstring( aContent )
No need to read the file into memory:
local aChunk, aStatus = loadfile( aPath )
--lhf