I haven't tried them yet, but in the work reference manual, look at:
3.3.7 – Local Declarations
and
3.3.8 – To-be-closed Variables
I think the syntax use is: local x <const> = 5 local filename <const> = "/etc/fstab" local fh <close> = io.open(filename, "r")