File: ex11.lua

package info (click to toggle)
luasocket 3.0~rc1%2Bgit%2Bac3201d-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 2,216 kB
  • sloc: ansic: 4,487; makefile: 320; sh: 116
file content (7 lines) | stat: -rw-r--r-- 197 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
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)