如何按行提取文本框中的内容,并将其作为元素放入字符串数组中?
我想把文本框中的内容按行提取,并且将提取出的一行放入字符串数组中,不知道如何实现,请大家多多帮忙,谢谢!
// Create a string array and store the contents of the Lines property. string[] tempArray = new string [textBox1.Lines.Length]; tempArray = textBox1.Lines;