title: Getting the nth line of a text file in C++
body: <p>I need to read the nth line of a text file (e.g. <code>textfile.findline(0)</code> would find the first line of the text file loaded with <code>ifstream textfile</code>). Is this possible? 
  I don't need to put the contents of the file in an array/vector, I need to just assign a specific line of the text file to a varible (specifically a int).</p>
  
  <p>P.S. I am looking for the simplest solution that would not require me to use any big external library (e.g. Boost)
  Thanks in advance.</p>