Provide a basic, copying implementation and a wrapper using borrowed pointers
Use each_line rather than eof test+read_line.