aboutsummaryrefslogtreecommitdiff
path: root/src/text/odp.rs
blob: eaed19651c39225c4b76c6607056f0c27a87b81e (plain)
1
2
3
4
5
6
7
8
9
use std::io::Read;
use dotext::{Odp, doc::OpenOfficeDoc};

pub fn get_text(path : &str) -> String {
    let mut file = Odp::open(path).unwrap();
    let mut content = String::new();
    let _ = file.read_to_string(&mut content);
    content
}