I am doing this
Code: Select all
love.filesystem.write('save','anything here')
So I don't understand how I am supposed to write a file and load it?
when I try to load it
Code: Select all
chunk = love.filesystem.load('save.lua')
local s = chunk()
print(tostring(s))
Code: Select all
Syntax error: save.lua:1: '=' expected near 'here'
There is something I am missing with this.. if anyone could explain to me I would really appreciate
Thanks!