I'd like to save the value assigned to a table in real time, I'll explain.
I have 2 files:
Main.lua
dofile("tester.lua")
io.write("blabla")
table.insert(oi, io.read())
print(oi[1])
io.read()
tester.lua
oi = {}
If I execute and write: kkk will return - > lol But when you close the program, it does not save to the file. How do I make the value added to the table continue to be saved?