pub fn write_line(writer: impl Write, text: &str) -> Result<()>
Writes text plus one newline to a generic writer.
Returns any I/O error reported by writer.
writer