[][src]Function dbase::write_to_path

pub fn write_to_path<P: AsRef<Path>>(
    records: &Vec<Record>,
    path: P
) -> Result<(), Error>

Writes all the records to the a new file at path

Examples

let mut fst = dbase::Record::new();
fst.insert("Name".to_string(), dbase::FieldValue::from("The Flesh Prevails"));
fst.insert("Price".to_string(), dbase::FieldValue::Numeric(Some(9.99)));
let records = vec![fst];

dbase::write_to_path(&records, "albums.dbf").unwrap();