pub fn write_stdout_line(text: &str) -> Result<()>
Writes text plus one newline to process stdout.
Returns any I/O error reported while writing to stdout.