Function get_input

Source
pub fn get_input(year: u16, day: u8, path: &str) -> Result<(), Box<dyn Error>>
Expand description

Gets input of specified year and day, writing to given path. Reads from environment variable for authentication. Set ADVENT_COOKIE to your session value in your environment variables to configure.

ยงExamples

advent_input::get_input(2017, 16, "sixteen.txt").unwrap(); // Writes input for Day 16, 2017 to sixteen.txt