Skip to main content

to_csv_writer

Function to_csv_writer 

Source
pub fn to_csv_writer<W: Write>(doc: &Document, writer: W) -> Result<()>
Expand description

Write a HEDL document to CSV format using a writer.

ยงExample

use hedl_core::Document;
use hedl_csv::to_csv_writer;
use std::fs::File;

let doc = Document::new((1, 0));
let file = File::create("output.csv").unwrap();
to_csv_writer(&doc, file).unwrap();