Posted 05 March 2016 - 01:35 AM
Ok I'm testing a piece of code for my main program but for some reason when saving a table to a file puts nil in the file.
local todo={"a","b"}
function save(todo,tlist)
local file = fs.open(tostring("tlist"),"w")
file.write(textutils.serialize(todo))
file.close()
end
save()
Edited on 05 March 2016 - 12:36 AM