name="Peter|Ronald|Garner|Simon|Liisha|Lori";
Peter Ronald Garner Liisha Lori
Quote:Mohd Wasif - 5 hrs ago I want output as: Peter Ronald Garner Liisha Lori
string name = "Peter|Ronald|Garner|Simon|Liisha|Lori"; foreach (string s in name.Split('|')) Console.WriteLine(s);
string[] strArray= name.Split('|');
string name = "Peter|Ronald|Garner|Simon|Liisha|Lori"; var myArray = name.Split('|');
string name = "Peter|Ronald|Garner|Simon|Liisha|Lori"; string[] str = name.Split(new char[]{'|'});
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)