blob: 10b53424ef67a67a5df6519b65a9716aa32e1c9f (
plain)
1
2
3
4
5
6
7
8
9
|
use std::io::Read;
use dotext::{Odt, doc::OpenOfficeDoc};
pub fn get_text(path : &str) -> String {
let mut file = Odt::open(path).unwrap();
let mut content = String::new();
let _ = file.read_to_string(&mut content);
content
}
|