title: C++ Appending to an array
body: <pre><code>const int fileLength = fileContent.length();
      char test[1000];
      for (int p = 0; p &lt; fileLength; ++p){
          test[p].append(fileContent[p]); // Error: expression must have class type
      };
  </code></pre>
  
  <p>I'm attempting to append the characters of a text file into an array which i've created. Though I'm getting the error " expression must have class type ". Tried googling this error to no avail.</p>