From 87e2140a5d46e95dc05526dc03cc2f55f195842c Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Sat, 17 Nov 2018 21:52:51 +0200 Subject: Initial scaffolding for doing advent of code challenges Mostly just having a project and a convenient way of reading in a file. --- src/bin/day_1.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/bin/day_1.rs (limited to 'src/bin/day_1.rs') diff --git a/src/bin/day_1.rs b/src/bin/day_1.rs new file mode 100644 index 0000000..7c9cdbf --- /dev/null +++ b/src/bin/day_1.rs @@ -0,0 +1,18 @@ +extern crate advent_of_code_2018; +use advent_of_code_2018::*; + +use std::error::Error; +use std::path::PathBuf; + +// cargo watch -cs "cargo run --bin day_1" + +fn main() -> Result<(), Box> { + let input = read_file(&PathBuf::from("inputs/1.txt"))?; + + println!("Input: {:?}", input); + + + + + Ok(()) +} -- cgit v1.2.3