aboutsummaryrefslogtreecommitdiff
path: root/src/text/xlsx.rs
blob: a438e964ffb0ce825d8503656ad8302d774ec38e (plain)
1
2
3
4
5
6
7
8
9
use std::io::Read;
use dotext::{Xlsx, MsDoc};

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