split a string after 10ccharacters in c# code example
Example 1: split a string every character
# Python3 - separate each character of non-spaced string
def split(string):
return [letter for letter in string]
# Driver code
string = 'split this string'
print(split(string))
Example 2: how to split a string with strings in c#
string[] separatingStrings = { "<<", "..." };
string text = "one<<two......three<four";
System.Console.WriteLine($"Original text: '{text}'");
string[] words = text.Split(separatingStrings, System.StringSplitOptions.RemoveEmptyEntries);
System.Console.WriteLine($"{words.Length} substrings in text:");
foreach (var word in words)
{
System.Console.WriteLine(word);
}