Code: Select all
filename = 'save.txt'
if love.filesystem.exists(filename) then
print('FOUND SAVE FILE!')
print(love.filesystem.load(filename))
else
print('NO SAVE FILE!')
end
love.filesystem.write(filename, 'this is my text string' )
run again, it does not want to load the file! I get:
Can anyone help? I have tried updating Love 2D.... It's pretty damn fundamental this bug! For my savesFOUND SAVE FILE!
Error: main.lua:9: Syntax error: save.txt:1: '=' expected near 'make'
stack traceback:
[C]: in function 'load'
main.lua:9: in main chunk
[C]: in function 'require'
[string "boot.lua"]:429: in function <[string "boot.lua"]:275>
[C]: in function 'xpcall'
[Finished in 3.3s with exit code 1]