1
2
3
4
5
6
7
8
9
10
11
12
use extractous::Extractor;

fn main() {
    // Get the command-line arguments
    let args: Vec<String> = std::env::args().collect();
    let file_path = &args[1];

    // Extract the provided file content to a string
    let extractor = Extractor::new();
    let content = extractor.extract_file_to_string(file_path).unwrap();
    println!("{}", content);
}