Friday, October 28, 2011

string split

string s = "tubo1|tubo2|tubo3";
string[] splited = s.split ('|') // it yields you array of three elements
"tubo1", ""tubo2", "tubo3"
// count is used if you want to reduce the number of elements returned

No comments:

Post a Comment