I am very new to lua scripting, I start by creating and writing text to a Lua file using this script:
A = "Hello"
local file = io.open ('test.txt',"w")
file:write(A)
file:close()
And I got this error:
: 3 Attempt to index local 'file' (nil value)
What is wrong here?
P / s: I run this lua on camera with CHDK.
source
share