DEV Community

Discussion on: AoC Day 1: Chronal Calibration

Collapse
 
arjunrajkumar profile image
Arjun Rajkumar • Edited

Hi Ryan.. Just starting on the #adventofcode series.

Just curious how you are reading the inputs. E.g. first problem says the input is on adventofcode.com/2018/day/1/input

Do you parse the page to get the inputs?
Or copy/paste and store it as a file? Sorry if this sounds dumb.. But am wondering how you are downloading the file?

Thanks

Collapse
 
rpalo profile image
Ryan Palo

No problem! That would be slick to have it download the page for me, but I just go to the link and copy the text. I've got a directory in my project called data, and each day's input as day1.txt, day2.txt, etc. Then I just change the filename that I'm reading.

Let me know if this helps or if you have other questions :)

Collapse
 
arjunrajkumar profile image
Arjun Rajkumar

Thanks. The data folder makes sense.