title: C++ read Serial input to String
body: <p>I need to get the Serial input from the console to a String.
  When the User types "xyz" into the console and presses enter, the String "input" should be defined as "xyz". From then I'll interpret the String.
  This is what I currently have:</p>
  
  <p>Defintion:</p>
  
  <pre><code>char input[] = {0};
  char bufferChar[] = {0};
  </code></pre>
  
  <p>Use:</p>
  
  <pre><code>bool canInput = true;
  while(canInput == true) {
    if(Serial.available() &gt; 0) {
      char bufferChar2 = Serial.read();
      bufferChar[1] = bufferChar2;
      strcpy(input[1], input[1]);
      strcat(input[1], bufferChar[1]);
      Serial.print(input);
      tft.print(input);
    }
  }
  </code></pre>
  
  <p>I am new to c, so sorry if this code is bad.
  Thanks in advace,
  Linus</p>