Am I making any sense at all? How would I do this?
I'm kinda new to computercraft, so the easier explained the better
Posted 30 October 2012 - 03:45 AM
Posted 30 October 2012 - 04:05 AM
Posted 30 October 2012 - 07:10 PM
local hndl = fs.open("programdata","r") if hndl then
programdata = textutils.unserialize(hndl.readAll(programdata)) hndl.close()
else --figure out some other way to populate the table
end
-- put the part of your program that goes between loading and saving here
hndl = fs.open("programdata","w") hndl.write(textutils.serialize(programdata)) hndl.close()
0 members, 2 guests, 0 anonymous users