String.Split

  • Thread starter Thread starter Wallace
  • Start date Start date
W

Wallace

Hai All,

I am having a doubt in string.split, here the code sample

string str = "school college job";

note that there is '\t' spacing between each term in the string str.

how can I split this using split method??

Urgent... Please help...

Looking forward for the response...

Thax in advance....
 
string [] result = str.Split('\t');

Note: By default VS insert spaces when you press TAB. (Be shoure that
you have '\t' in your string str)
 
Back
Top