csv-zip-maker-rs

CSV and ZIP maker

Documentation

Features

Changes

v0.2.1 (2022/08/03)

v0.2.0 (2022/08/03)

v0.1.2 (2022/07/04)

v0.1.1 (2022/07/02)

v0.1.0 (2022/07/02)

Examples

```rust use csvzipmaker::{CsvExcelCustomizer, CsvZipError, CsvZipMaker};

fn main() -> Result<(), CsvZipError> { let mut maker = CsvZipMaker::new("test", "summary")?; let mut csvmaker = maker.makecsvmakerforexcel("summary1")?; csvmaker.write(&vec!["aaa", "bbb"])?; csvmaker.write(&vec!["ccc", "ddd"])?; maker.addcsv(&mut csvmaker)?; let mut csvmaker = maker.makecsvmaker("summary2")?; csvmaker.write(&vec!["111", "222"])?; csvmaker.write(&vec!["333", "444"])?; maker.addcsv(&mut csvmaker)?;

let path_buf = maker.make_zip_file()?;
std::fs::copy(path_buf, "test.zip")?;
Ok(())

} ```