title: C++ Reading data from a file line by line
body: <p>I am new to programming and I have this question. I have this file that I am opening</p>
  
  <pre><code>ifstream fin;
  FILE * pFile;
  pFile = fopen (fname,"r");
  </code></pre>
  
  <p>The file has 3 data each line. The first is an integer, the second is an alphabet and the third is an address(like computer memory address). How do I extract these line by line into 3 variables that I can process, and then repeat it with next line and so.</p>