luasocket/gem/ex11.lua
2022-03-19 17:13:15 +03:00

8 lines
195 B
Lua

local input = source.chain(
source.file(io.open("input.bin", "rb")),
encode("base64"))
local output = sink.chain(
wrap(76),
sink.file(io.open("output.b64", "w")))
pump.all(input, output)