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