Click here to Skip to main content
15,994,910 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hiiii
could you please tell me the code for split a string array into string arrays in c#?
Posted
Comments
Richard MacCutchan 21-Feb-14 6:51am    
What do you mean by split? You can iterate through an array and extract the items that meet your criteria.
johannesnestler 21-Feb-14 6:51am    
a big Array to smaller sub-Arrays? Or did you mean split a string to an Array?
Krunal Rohit 21-Feb-14 7:00am    
Splitting an array will give you and individual characters.
-KR
Krunal Rohit 21-Feb-14 7:02am    
Or a 2-D array ? OR Jagged Array ?
-KR

1 solution

C#
string str = "Hello World";
string[] strs = str.Split(new char[0]);

-KR
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900