Initial
This commit is contained in:
commit
284f099d3e
22 changed files with 1717 additions and 0 deletions
5
src/common/file.rs
Normal file
5
src/common/file.rs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
use std::{fs, io};
|
||||
|
||||
pub fn read_data(day_num: usize, file: &str) -> io::Result<String> {
|
||||
fs::read_to_string(format!("data/day{:02}/{}", day_num, file))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue