diff --git a/2022/src/template.rs b/2022/src/template.rs new file mode 100644 index 0000000..ae4e817 --- /dev/null +++ b/2022/src/template.rs @@ -0,0 +1,6 @@ +mod utils; + +pub fn execute() -> Result<(), io::Error> { + + Ok(()) +} diff --git a/2022/src/utils.rs b/2022/src/utils.rs new file mode 100644 index 0000000..7e69f99 --- /dev/null +++ b/2022/src/utils.rs @@ -0,0 +1,12 @@ +use std::io; +use std::io::prelude::*; +use std::fs::File; + +fn read_lines(filename: &str) -> io::Result>> { + let file = File::open(filename)?; + Ok(io::BufReader::new(file).lines()) +} + +fn print_step(step: i8, value: u64) { + println!("Step {step} solution: {solution}"); +}