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?
Ryan is an engineer in the Sacramento Area with a focus in Python, Ruby, and Rust. Bash/Python Exercism mentor. Coding, physics, calculus, music, woodworking. Looking for work!
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 :)
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 asday1.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 :)
Thanks. The data folder makes sense.