Function write_ascii

pub fn write_ascii<P: AsRef<Path>>(
    posvol: &Posvol,
    path: P,
) -> Result<(), Error>
Expand description

Write raw Posvol data to an ascii text file

Any posvol file read into a Posvol type may be written to an ASCII file for inspection or analysis.

This is a raw conversion with every value converted to ascii and written directly to a text file with no formatting. For a more readable text file use write_ascii_pretty() instead.

// Read the example file
let posvol = read_posvol_file("./data/posvol_example.bin").unwrap();

// Write a direct translation of the binary data to ASCII
write_ascii(&posvol, "./posvol.txt");