Stumbled across a couple of nifty little functions which can be used in place of TextFile.ReadToString and TextFile.WriteFromString which I thought were pretty cool. I'll just leave 'em up here in case anyone's interested.
An example implemented in AMS is attached.
Nb.
Comes from here:
Fun with Lua http://www.fredshack.com/docs/lua.html

There's a bunch of interesting stuff, there.
Code:
-- [B]Read from a text file[/B] local file = assert(io.open ("myfile.txt","r")) data = file:read("*a") file:close() [B]-- Write to a text file[/B] local file = assert(io.open ("myfile.txt","w")) file:write("Blah, blah") file:close()
Nb.
Comes from here:
Fun with Lua http://www.fredshack.com/docs/lua.html

There's a bunch of interesting stuff, there.
Comment