prtgn_encoding 0.2.0

Encoding and decoding for the PRTGN file format
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use prtgn_encoding::{read, write};

fn main() {
    let filename = "test.prtgn".to_string();
    let text = "Hello world! This is some example text.".to_string();

    write(filename, text).unwrap();

    let filename = "test.prtgn".to_string();

    let read_text = read(filename).unwrap().to_string();

    println!("{}", read_text)
}