title: Reading file line by line WITHOUT using FOR/WHILE loop
body: <p>Hey guys here's a interesting challenge for you all.
  I'm given a text file and I'm supposed to process the information line by line. The processing part is trivial so long as I can obtain the individual lines. However here's the challenge:</p>
  
  <ol>
  <li>I must do so WITHOUT using any FOR/WHILE loops in my code. (This include recursions)</li>
  <li>I am only allowed to use the standard C++ library.</li>
  </ol>
  
  <p>Currently right now my best solution is this:
  <a href="https://stackoverflow.com/questions/2291802/is-there-a-c-iterator-that-can-iterate-over-a-file-line-by-line">Is there a C++ iterator that can iterate over a file line by line?</a>
  but I'm hoping for a better one that does not involve creating my own iterator class or implementing a proxy for std::string.</p>
  
  <p>P.S. this is for a school assignment and the challenge here was to solve the problem using a combination of std functionalities and algorithms but I have no clue how to go about solving it</p>