title: Returning a string with one line per index
body: <p>Multi-line, textBox1.Text =</p>
  
  <pre><code>RGYR
  RGGB
  RGRG
  RYBG
  RYYB
  GBRY
  RYBG
  </code></pre>
  
  <p>I want the game to read each line one at a time, however;</p>
  
  <pre><code>Color[] colourset = newSequence(textBox1.Text.Length);
  </code></pre>
  
  <p>is reading the string as a whole, without anticipating the line break at every 4th character and it's messing everything up.</p>
  
  <p>How can I make it read one line per index in a multi-line textbox?</p>
  
  <p>Code for context:</p>
  
  <pre><code>private Color[] sequence;
  //Declare dictionary
  private Dictionary&lt;char,Color&gt;  stringTocolor = new Dictionary&lt;char,Color&gt;();
  
  public SimonSays ()
  {
      //add content to Dictionary
      stringTocolor.Add('R', Color.Red);
      stringTocolor.Add('G', Color.Green);
      stringTocolor.Add('B', Color.Blue);
      stringTocolor.Add('Y', Color.Yellow);
  
      Color[] colourset = newSequence(textBox1.Text.Length); //This may be the problem? Reading entire string length instead of just one line at a time??
  }
  
  public Color[] newSequence(int length)
  {
      Color[] array = new Color[length];
      //check dictionary has the char key or not
      for (int i = 0; i &lt; textBox1.Text.Length; i++)
      {
          if (stringTocolor.ContainsKey(textBox1.Text[i]))
          {
               array[i] = stringTocolor[textBox1.Text[i]];
          }
          //give alert if wrong key
          else
          {
               MessageBox.Show("Wrong Colour input at index " + i + " of textbox string!");
          }
      }
      this.sequence = array;
      return array;
  }
  public void newSequence (Color [] sequence)
      {
      this.sequence= //read next line of string
      }
  </code></pre>