ose: Read and write to streams for std io in to_erl