Posted 11 December 2018 - 07:33 PM
I think its a bit of a stupid question, but is it possible to do something like this?
local names = {"file1","file2",}
local files = {"/file1.lua","/file2.lua"}
for i=1,2 do
local file = fs.open(folders[i],"r")
local names[i] = textutils.unserialize(file.readAll())
file.close()
end
print(names[1])
Edited on 11 December 2018 - 06:34 PM