day 03 part 1
This commit is contained in:
parent
529e2fad5c
commit
d8816f70d7
10 changed files with 260 additions and 25 deletions
|
|
@ -0,0 +1,11 @@
|
|||
use std::{fs, io};
|
||||
|
||||
pub fn load_actual(year: u64, day: u64) -> io::Result<String> {
|
||||
let path = format!("./data/{year}/day{:02}", day);
|
||||
fs::read_to_string(path)
|
||||
}
|
||||
|
||||
pub fn load_test(year: u64, day: u64) -> io::Result<String> {
|
||||
let path = format!("./examples/{year}/day{:02}", day);
|
||||
fs::read_to_string(path)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue