> Erlang defines an I/O protocol. It’s pretty well documented here: > https://erlang.org/doc/apps/stdlib/io_protocol.html I'm aware – perhaps I should have asked more clearly: am I going to have to implement it myself or is there something in the standard library I haven't noticed yet that already does?