mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-11-16 18:28:21 +01:00
8 lines
197 B
Lua
8 lines
197 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)
|