gtf_write/
gtf_write.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Creates a new GTF file.
//!
//! This writes one (sparse) record to stdout.

use std::io;

use noodles_gtf as gtf;

fn main() -> io::Result<()> {
    let stdout = io::stdout().lock();
    let mut writer = gtf::io::Writer::new(stdout);

    let record = gtf::Record::default();
    writer.write_record(&record)?;

    Ok(())
}