Source

love-mount / tests / basic-mount-lines / main.lua

Full commit

function love.load()
	-- mount the archive
	print("Let's test if lines() works now")
	
	love.filesystem.mount("test.zip")
	local found = false
	
	print("The message from mounted archive: ")
	for line in love.filesystem.lines("TextFile.txt") do
		print("line: "..line)
	end

	print("Now I'm going to save some kittens by umounting that archive!")
	love.filesystem.umount("test.zip")
		
	return love.event.quit()
end