use std::env; use std::fs; fn main() { let args: Vec = env::args().collect(); let file_path = &args[1]; let contents = fs::read_to_string(file_path) .expect("Should have been able to read the file"); println!("content : \n{}", contents); }