Author: Visual Web Developer | Posted on: 9/11/2010 7:16:49 AM | Views : 465

Hi,
I am trying to read a multilined textBox line by line into a List<String> but with the code below the compiler says that "'System.Environment' does not contain a definition for 'Newline'
String getLine = ""; List<String> getLines = new List<String>(); string[] mylines = TextBox6.Text.Split(Environment.Newline); for (int i = 0; i < mylines.Length; i++) { getLine = mylines[i].ToString(); getLines.Add(getLine); }
 
...

Go to the complete details ...