+ 1

What are all the syntax to split the string line by line

string

25th Nov 2016, 10:04 AM
Rithu Loki
Rithu Loki - avatar
3 odpowiedzi
+ 1
it is a easy way: _________ string myString = "hello"; for(int i = 0; i < myString.Lenght; i++) Console.WriteLine(myString[i]); ___________ output: h e l l o
26th Jan 2017, 10:29 AM
Catalin Popinciuc
Catalin Popinciuc - avatar
+ 1
How do you do this on python?
10th May 2017, 5:33 PM
One
One - avatar
0
In your case: string[] tokens = initial_string.Split('\n'); To split on all " and "s: string[] tokens = initial_string.Split(new[] { " and " }, StringSplitOptions.None);
25th Nov 2016, 11:57 AM
Samuel Neo
Samuel Neo - avatar