Make OFStream a class instead of a protocol and move readLine there.