re: AoC Day 1: Chronal Calibration VIEW POST

FULL DISCUSSION
 

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

 

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 :)

 
code of conduct - report abuse