So if I would like to load my password from file then I would write
load("password",password,pass)
print(pass)
But the computer will only print out empty space, so how can I fix this?
Code:
function load(name,tablename,data,)
file = fs.open("security/door/"..name,"r")
tablename = {} -- Table should be named password.
local line = file.readLine()
table.insert(tablename,line)
file.close()
data = tablename[1] -- Data should be named pass.
end
Thank you.












