Home c# how to break the string text on the word array in C...

how to break the string text on the word array in C #?

Author

Date

Category

Line must be divided into words and write them into the string array [].


Answer 1, Authority 100%

Using String.Split ()

string [] mystring = str.split (',');

You can also use the separators array, more detailed here:

https://msdn.microsoft.com /ru-ru/Library/TabH47CF(V=VS.110).aspx

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions