hoelzro / pluto

Heavy Duty Persistence for Lua
http://luaforge.net/projects/pluto/
81 stars 11 forks source link

Add streaming read/write #9

Open hoelzro opened 13 years ago

hoelzro commented 13 years ago

Instead of this:

local f = io.open('my-file', 'rb')
local s = f:read '*a'
f:close()

local my_object = pluto.unpersist(perms, s)

allow this:

local f = io.open('my-file', 'rb')
local my_object = pluto.unpersist(perms, s)
f:close()