initial commit

This commit is contained in:
WanderingPenwing 2024-12-06 14:59:59 +01:00
commit 73d53f33eb

13
src/main.rs Normal file
View file

@ -0,0 +1,13 @@
use std::env;
use std::fs;
fn main() {
let args: Vec<String> = 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);
}