Posted 24 July 2012 - 12:17 AM
Hello,
i have been trying to right an OS, and i currently have a problem. I need a way to save data between reboots. I have tried using io.write() but i can't target the one line of code that I need to change. for example
function testFunc()
local tochange == "data to change here"
end
In this example how would I change the value of tochange, in a way that is stored between reboots?
Thanks,
Matt
edit:
Also, how would I detect if a variable has a nil value? I am trying to see if a computer already has a label, but can't think of a way to do so.
thanks again,
Matt
i have been trying to right an OS, and i currently have a problem. I need a way to save data between reboots. I have tried using io.write() but i can't target the one line of code that I need to change. for example
function testFunc()
local tochange == "data to change here"
end
In this example how would I change the value of tochange, in a way that is stored between reboots?
Thanks,
Matt
edit:
Also, how would I detect if a variable has a nil value? I am trying to see if a computer already has a label, but can't think of a way to do so.
thanks again,
Matt