In Programming Mode :
i want record rolll in file, i use
file=io.open("rec1.txt","a")
io.output(file)
io.write("text test")
io.close(file)
LUAR ERROR!!
[string"chunk"]:4: bad argument #1 to 'close (FILE * expected, got nil)
but the code runs well on console
lua text1.txt