File write/read operations are now accessible from Lua. There are no security checks yet.

Here is an example of how it works in a script

file = openFile("/tmp/a", "r+")
actual = file:read(1)

I refactored the lcluascript library too, now there is a LCLua class which add the Lua functions and LibreCAD kernel functions into Lua.