title: How do I get specific lines from a text file in C++?
body: <p>I need some help with C++</p>
  
  <p>I am trying to create a program which contains excersises to practice the different German cases.</p>
  
  <p>Hard-coding all questions and respective answers seems like an awful lot of work, and super inefficient.</p>
  
  <p>What I want my program to do, is: grab a random line from file X, and grab the same line number from file Y. (This seems like the easiest way to get both questions and answers from external files.) To me, it seems the most logical to get a random number, and use that as a line number. But, that's about how far I got...</p>
  
  <p>I know basic C++, but am very eager to learn.</p>
  
  <p>Can anyone please explain to me how to pull this off, including all necessary command?</p>