ex11.lua 197 B

1234567
  1. local input = source.chain(
  2. source.file(io.open("input.bin", "rb")),
  3. encode("base64"))
  4. local output = sink.chain(
  5. wrap(76),
  6. sink.file(io.open("output.b64", "w")))
  7. pump.all(input, output)