Code: Select all
file = io.open("/home/pi/gas.txt", "w+")
file:write("gasstand"..gasstand.."\n")
file:close() --closes the open fileBut every time there is only the new data in the file gas.txt
Where is my error? And where can I find info re create a file if not already exist? To my knowledge quit native but the syntax.....
Thanks
-Bart