pub fn write_file<'a>( filepath: &str, data: impl Iterator<Item = &'a str>, append: bool) -> Result<(), &'static str>
Write lines in iterator to given path.