I'm trying to solve Problem 13 of project euler, which involves the sum of 100 50 digit numbers. I figured there would be a better way than the paste that whole chunk of numbers into my code. So I searched around and found that you could paste the chunk into a .txt file and read it from there.
So, how would I go about reading from a .txt file in C++ and more importantly getting the 50 digit strings individually from it?