pub fn write_lines<P>(filename: P, lines: Vec<String>) -> Result<()>where P: AsRef<Path>,
Write lines to file