title: Extract integers from file hidden between random characters
body: <pre><code>#include &lt;fstream&gt;
  #include &lt;vector&gt;
  #include &lt;string&gt;
  
  struct values {
      int a,b,c,d;
  };
  
  int main() {
      std::ifstream myfile("myfile.txt");
      std::vector&lt;values&gt; vect;
  
      // Format of text file is:
      // sdasjkdh234sldaksdj23asd125as24dfs
      // asdac5234sdf435ljk...35wsd63jj
      // asdad234sdf35gg567dfg554ddd
  
  
  }
  </code></pre>
  
  <p>I need to create a vector from a file where each line contains four integers hidden between random characters, and put them into a vector of structs where each integer is mapped to the four fields in the struct values. The file has no whitespaces.</p>
  
  <p>What is the easiest way to do this?</p>