summaryrefslogtreecommitdiff
path: root/aoc22/lib/src/lib.rs
blob: ffe4e4679c94a5a3b1167680c2ae5939c0998c8a (plain) (blame)
1
2
3
4
5
6
7
8
9
use std::fs;

pub mod prelude {
    pub use std::error::Error;
}

pub fn read_input(day: usize) -> String {
    fs::read_to_string(format!("day{}/input", day)).expect("Could not read input")
}