|
You could probably do something along the lines of:
f = assert( io.open("table.txt") )
s = f:read("*a")
f:close()
t = assert( loadstring("{"..s.."}") )()I think this will work in 5.1. But in 5.2 you'll need to do something else for loadstring().
Robby