I want to split a string after a period and put that sentence onto a separate line

Viewed 264

I want to take user input then separate the string after each period. Then I want to put each sentence onto their own line in a text box in Visual Studio.

I know how to store the sentences in an array, and put each sentence on every other line but when I run, the outcome for every letter I type is system.string[].

 string input = TextEditor.Text;
 string[] tokens = input.Split('.');
 Output.AppendText(Environment.NewLine);
 Output.Text += tokens;

I am pretty sure it is coming from the output.text = token;, but I don't know what to replace that with. Any idea?

1 Answers
Related