Crates.io | citi |
lib.rs | citi |
version | 0.2.0 |
source | src |
created_at | 2021-07-08 20:05:50.072526 |
updated_at | 2021-07-08 21:23:53.827864 |
description | Read and write CITI files |
homepage | |
repository | https://github.com/Wave-View-Imaging/citi |
max_upload_size | |
id | 420464 |
size | 199,850 |
Read file:
use citi::Record;
use std::fs::File;
let mut file = File::open("file.cti").unwrap();
let record = Record::from_reader(&mut file);
Write file:
use citi::Record;
use std::fs::File;
let record = Record::default();
let mut file = File::create("file.cti").unwrap();
record.to_writer(&mut file);