function love.load()
file = love.filesystem.newFile("cool.txt")
file:open("w")
for x = 1, 5 do file:write("This is cool line number "..x) end
file:close()
end
function love.draw()
love.graphics.print("Done!", 0, 10)
end
My Problem is that this won't work, the txt file is still empty.