title: How do I make it so that numbers are being read so I can calculate the average
body: <pre><code>    cout &lt;&lt; &quot;\nName of File name: &quot;;
      cin &gt;&gt; (fileName);
      readFile.open(fileName);    //opens the file
  
      if (!readFile.is_open()) //if file is open/exists
      {
          cout &lt;&lt; &quot;! ! File does not exist ! !&quot; &lt;&lt; endl;
          goto Start;
      }
      cout &lt;&lt; &quot;\n&quot;;
      if (readFile.is_open())
      {
          while (getline(readFile, line)) //read line by line
          {
              cout &lt;&lt; line &lt;&lt; &quot;\n&quot;;
          }
      }
      readFile.close();
      goto Start;
  </code></pre>
  <p>I only have these set of codes to read the text files line by line, and I have a text file that looks like this.</p>
  <pre><code>Students    Math    Science    English
  Student1    78      87         23
  Student2    77      82         95
  Student3    86      56         46
  </code></pre>
  <p>How can I see and use the grades so it comes out as integers because I need to use them for calculations?</p>