pub fn write_one_line<P: AsRef<Path>>(path: P, line: &str) -> Result<()>