Code: Select all
test_table = {"foo","bar","november 5th"}
function Load()
echo("Loading table.\n")
table.load("testtable.txt",test_table)
echo("Table loaded.\n")
end
function Save()
echo("Saving table.\n")
table.save("testtable.txt",test_table)
echo("Table saved.\n")
end
When I try and use Save(), I get the following error:
Code: Select all
[ERROR:] object:<run_code> function:<Alias27>
<[string "--[[..."]:66: bad argument #1 to 'open' (string expected, got table)>
I'm not sure what I'm doing wrong, or if it's right in front of me, or what.