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?
I'm a Sr. Software Engineer at Flashpoint. I specialize in Python and Go, building functional, practical, and maintainable web systems leveraging Kubernetes and the cloud. Blog opinions are my own.
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.