QUOTE(cbr4rusty @ 18 May, 2008 - 11:45 AM)

I currently have a program that reads text from a text file and splits it accordingly and then saves the results to another text file. How can I do this between two richtextboxes in a form? Basicaly, how can you read and write one line at a time from a richtextbox?? Thanks,
Rusty
CODE
while ((line=objReader.ReadLine())!=null)
{
Array1 = line.ToString();
textArray =line.Split('"');
System.Collections.ArrayList fieldArray = new System.Collections.ArrayList();
object[] arInfo1 = new object[7];
arInfo1 = line.Split(splitter);
foreach (string field in arInfo1)
{
fieldArray.Add(field);
}
myList.Add(arInfo1[0].ToString() + '\t' + arInfo1[1].ToString() + '\t' + textArray[1].ToString() + '\t' + textArray[3].ToString() + '\t' + textArray[5].ToString()+arInfo1[6].ToString());
}
SaveIT();
objReader.Close();
I used the while because I was reading in 1 line at a time until the end of a .txt file and splitting the line twice and then picking the parts of that split that I needed. That was an unusual circumstance, but I still would like to read one line at a time from a richtextbox. How can I do this?