-- To save / write
local f = assert(io.open("myvaluesave.txt", "w"))
f:write(your_firstVariable, "\n")
f:write(your_secondVariable, "\n")
f:write(your_thirdVariable, "\n")
--- and so on for all variables you wish
f:close()
-- To open / read
local f = assert(io.open("myvaluesave.txt", "r"))
your_firstVariable = f:read("*line")
your_secondVariable = f:read("*line")
your_thirdVariable = f:read("*line")
--- and so on for all or specific values
f:close()
The best way would be to put the variables inside a table and then use table serialize. _________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum