C# Splitting Strings?

You can have them in an array of strings doing something as easy as this:

string[] s = "Hello#World".Split('#');

s[0] contains “Hello”, and s[1] contains “World”

See here for more information on split: http://msdn.microsoft.com/en-us/library/b873y76a.aspx

Leave a Comment