From 60af8bb695313f681245bf37013bb1ab2b731255 Mon Sep 17 00:00:00 2001 From: Kalle Struik Date: Sat, 3 Dec 2022 16:46:24 +0100 Subject: [PATCH] Update template --- src/main.rs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 3033f62..b2a2d72 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,16 @@ +use std::fs; -fn main() { +use anyhow::Result; +use itertools::Itertools; + +fn main() -> Result<()> { + let input = fs::read_to_string("input/0X.txt")?; + + let lines: Vec<&str> = input + .split("\n") + .filter(|s| *s != "") + .collect_vec(); + + return Ok(()); }