initial commit
This commit is contained in:
commit
73d53f33eb
13
src/main.rs
Normal file
13
src/main.rs
Normal 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);
|
||||||
|
}
|
Loading…
Reference in a new issue