pub fn write_to_file<S, P>(source: S, target: P) -> Result<File, FileError>where S: AsRef<[u8]>, P: AsRef<Path>,