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
More Related Contents:
- Split and cut string in C# [closed]
- Easiest way to split a string on newlines in .NET?
- Split a string by another string in C#
- How can I split a string with a string delimiter? [duplicate]
- Split a string with delimiters but keep the delimiters in the result in C#
- Splitting a string / number every Nth Character / Number?
- Split a string with delimiters but keep the delimiters in the result in C#
- Split string into string array of single characters
- split a string on newlines in .NET
- How to extract decimal number from string in C#
- Get values between curly braces c#
- Splitting a string in C#
- splitting a string based on multiple char delimiters
- Get string between two strings in a string
- .NET / C# – Convert char[] to string
- How can I transform string to UTF-8 in C#?
- How to keep the delimiters of Regex.Split?
- How to format a string as a telephone number in C#
- How to include quotes in a string
- How to know the size of the string in bytes?
- Easiest way to parse a comma delimited string to some kind of object I can loop through to access the individual values?
- Convert string to decimal, keeping fractions
- How to do ToString for a possibly null object?
- Check if a string is a palindrome
- Instantiate a class from its textual name
- Why does .ToString() on a null string cause a null error, when .ToString() works fine on a nullable int with null value?
- How to check if a String contains any letter from a to z? [duplicate]
- Does C# have a String Tokenizer like Java’s?
- Convert String^ in c# to CString in c++/CLI
- Regular expression to split string and number