title: Creating a big size array of type char and copying file characters
body: <p>I have to copy characters of a file in a big size array, so I created this code:   </p>
  
  <pre><code>std::vector&lt;std::vector&lt;char&gt; &gt; strings;
  
  strings.resize(rows);
  
  for (int i = 0; i &lt; rows; i++)  
  { 
      strings[i].resize(columns); 
  }
  
  ifstream in("filename.txt");
  
  for (int i = 0; i &lt; rows; i++)    
      in.getline(strings[i], columns);
  </code></pre>
  
  <p><code>strings</code> should contain all the characters of the file, but when I compile this program, I have the following error:</p>
  
  <blockquote>
    <p>no matching function for call to ‘std::basic_ifstream >::getline(std::vector >&amp;, int)’</p>
  </blockquote>
  
  <p>(and others error lines)</p>
  
  <p>How can I copy all characters of a file in a big char array?</p>