title: Appending line from a file into char array
body: <pre><code>char wordList[200];
  ifstream wordListFile (&quot;wordlist.txt&quot;);
  
  
  for(std::string line; getline(wordListFile, line); ) {
          wordListFile &gt;&gt; wordList;
  }
  </code></pre>
  <p>This code currently returns the line at the end of the wordListFile (wordlist.txt),</p>
  <p>is there any way to append the lines to wordList?</p>
  <p>because when I use the append() function it returns an error.</p>