title: storing n amount of integers n <15 from a file into array
body: <p>I am learning file stream and arrays and wanted to practice. I am also practicing writing pseudo code.I wrote the pseudo code for this program that stores numbers from file into integer array.Everything seems easy to implement into code except one part. I don't know how the increment would work. Any help or feedback would be much appreciated.</p>
  
  <p>Here is what's in the file. Only numbers in the line that starts with Test1 will be stored in the array.</p>
  
  <pre><code>Test1 words to ignore: 14 26 45 48 65 26 49
  Dummy line: 15 17 45
  Test1 words I want to ignore2: 14 15 22 
  Test1 dont read this words: 11 15
  </code></pre>
  
  <p>Edit : I acutally wrote the code.</p>
  
  <pre><code>
  #include &lt;iostream&gt;
  #include &lt;fstream&gt;
  #include &lt;cstring&gt;
  #include &lt;string&gt;
  
  
  const int ARRAY_SIZE = 15;
  void fucn(std::ifstream &amp;);
  
  
  int main()
  {
      std::ifstream myFile("test.txt");
      fucn(myFile);
      myFile.close();
  }
  void fucn(std::ifstream &amp; myFile)
  {
      int myArray[ARRAY_SIZE] = {0};
  
      int i =0;
      std::string strName;
      while (!(myFile&gt;&gt;strName).eof())
      {
          myFile.ignore(INT_MAX,':');
         if (strName == "Test1")
         {
             while (myFile &gt;&gt;myArray[i])  //This part is not reading anything.
             {
                 ++i;
             }
         }
  
  
      }
      for (int myVar: myArray)
      {
          std::cout &lt;&lt;myVar &lt;&lt;" ";
      }
  }
  </code></pre>