Posted 06 May 2014 - 07:49 AM
can i use something like this to set a variable? where output is the variable I'm targeting?
anything else i can do to simplify the process of changing such vars without using all the same sections of code like the one above?
or do i just need to read everything i need from all the files i need into a table? am relatively new to lua btw
function getstr(file,output)
local f=fs.open(file,"r")
output=f.readAll()
f.close()
end
anything else i can do to simplify the process of changing such vars without using all the same sections of code like the one above?
or do i just need to read everything i need from all the files i need into a table? am relatively new to lua btw
Edited on 08 May 2014 - 06:02 AM